Apache SOLR is a provider of Spring Boot for handling search and indexing of data operations on SOLR content for web. SOLR is a Full Text search engine for content management and also provide REST based SOLR APIs for operations. To use SOLR in your Spring boot application you have to add this SOLR starter in your pom.xml .
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-solr</artifactId>
<version>2.4.12</version>
</dependency>
After adding SOLR starter in your application it will automatically download and add the required dependencies in your application and initialize with default values. You can overwrite these values through application.properties / application.yaml .
SOLR Configuration Properties
Spring Boot load these properties in SolrProperties class.
Name | Default Value | Description |
spring.data.solr.host | http://127.0.0.1:8983/solr | Solr host. Ignored if “zk-host” is set. |
spring.data.solr.repositories.enabled | true | Enable Solr repositories. |
spring.data.solr.zk-host | ZooKeeper host address i.e HOST:PORT. |
References
https://docs.spring.io/spring-boot/docs/1.4.x/reference/html/common-application-properties.html
Happy Learning !!!
You must log in to post a comment.