{"id":19538504,"url":"https://github.com/indoqa/solr-spring-client","last_synced_at":"2025-08-14T00:18:14.381Z","repository":{"id":31924485,"uuid":"35493851","full_name":"Indoqa/solr-spring-client","owner":"Indoqa","description":"A Spring FactoryBean for Solr 5.x clients.","archived":false,"fork":false,"pushed_at":"2025-07-23T16:11:49.000Z","size":121,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-23T17:42:20.288Z","etag":null,"topics":["indoqa-library","solr","solr-client"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Indoqa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-05-12T14:43:22.000Z","updated_at":"2025-07-23T16:11:53.000Z","dependencies_parsed_at":"2023-01-14T20:07:10.882Z","dependency_job_id":"90043bb1-12c5-4305-9dda-9b1aa4a6e4b4","html_url":"https://github.com/Indoqa/solr-spring-client","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Indoqa/solr-spring-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Fsolr-spring-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Fsolr-spring-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Fsolr-spring-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Fsolr-spring-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indoqa","download_url":"https://codeload.github.com/Indoqa/solr-spring-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Fsolr-spring-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270337959,"owners_count":24567030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["indoqa-library","solr","solr-client"],"created_at":"2024-11-11T02:35:06.461Z","updated_at":"2025-08-14T00:18:14.292Z","avatar_url":"https://github.com/Indoqa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Indoqa Solr Spring Client\n\nThis project offers a Spring based implementation of a FactoryBean for communicating with Apache Solr servers. \n\nThe SolrClientFactory allows to communicate with Solr either embedded, via http or Apache ZooKeeper for SolrCloud installations.\n\nThe desired behavior is configured with the supplied url:\n\n* file:// - uses the EmbeddedSolrClient\n* http:// - uses the HttpSolrClient\n* cloud:// - uses the CloudSolrClient\n\n\n## Installation\n\n### Requirements\n\n  * Apache Solr 8.0+\n  * Spring Beans 4.1+\n  * Java 8+\n  \n### Build\n\n  * Download the latest release via maven\n\n```xml\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.indoqa.solr\u003c/groupId\u003e\n      \u003cartifactId\u003esolr-spring-client\u003c/artifactId\u003e\n    \u003c/dependency\u003e\n    \n```\n\n  * Download source\n  * run \"maven clean install\"\n\n  ## Configuration\n\n### Initialize the SolrClientFactory for tests with this snippet\n```java\n\n    SolrClientFactory solrClientFactory = new SolrClientFactory();\n    solrClientFactory.setUrl(\"file:///tmp/solr-spring-server/embedded-test-core\");\n    solrClientFactory.setEmbeddedSolrConfigurationDir(\"./src/test/resources/solr/test-core\");\n    solrClientFactory.initialize();\n\n    SolrServer solrServer = solrClientFactory.getObject();\n\n    QueryResponse response = solrServer.query(new SolrQuery(\"*:*\"));\n\n    ...\n\n    solrServer.shutdown();\n    solrClientFactory.destroy();\n\n```\nThe url can either be a relative or absolute directory, the embeddedSolrConfigurationDir must include the usual Solr configuration files:\n\n* schema.xml\n* solrconfig.xml\n\n### To communicate with a single Solr server use this snippet\n\n```java\n\n    SolrClientFactory solrClientFactory = new SolrClientFactory();\n    solrClientFactory.setUrl(\"http://localhost:8983/test-core\");\n    solrClientFactory.initialize();\n```\n\n### To communicate with a SolrCloud cluster use this snippet\n\n ```java\n\n    SolrClientFactory solrClientFactory = new SolrClientFactory();\n    solrClientFactory.setUrl(\"cloud://zkHost1:2181,zkHost2:2182?collection=test-collection\");\n    solrClientFactory.initialize();\n\n```\nThe syntax uses zkHost1:2181,zkHost2:2182 for the ZooKeeper instances in your ZooKeeper ensemble, followed by the collection to be used. \nThis ensures that the communication for update requests will be established against the leader of the collection to minimize communication overhead.\n\n### Solr Spring server integration based on xml configuration\n\n ```xml\n\n    \u003cbean name=\"solrClientFactory\" class=\"com.indoqa.solr.server.factory.SolrClientFactory\"\u003e\n      \u003cproperty name=\"url\" value=\"file://./target/solr/embedded-test-core\" /\u003e\n      \u003cproperty name=\"embeddedSolrConfigurationDir\" value=\"./src/test/resources/solr/test-core\" /\u003e\n    \u003c/bean\u003e\n\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findoqa%2Fsolr-spring-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findoqa%2Fsolr-spring-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findoqa%2Fsolr-spring-client/lists"}