spring-data-solr-showcase
spring-data-solr-showcase copied to clipboard
Sample Spring MVC Application demonstrating usage of Spring Data Solr.
Spring Data Solr Showcase
This example shows basic usage concepts of Spring Data Solr.
The commit order from initial to latest guides you through:
- STEP 1: Initial setup and configuration.
- STEP 2: Custom
Repositoryimplementation for autocomplete. - STEP 3:
@Facetannotation as alternative to custom implementation. - STEP 4: Highlighting of search terms in result.
- STEP 5: Type mapping for custom types.
- STEP 6: Use multicore support to enable automatic template configuration.
In order to run this example a 4+ Solr Server and Maven are required.
The application is meant to work with the example data provided by the Solr distribution.
Running Solr
:solr> cd example
:example> java -jar start.jar
:example> cd exampledocs
:exampledocs> java -jar post.jar *.xml
Access via localhost:8983/solr/
Running Showcase
:spring-data-solr-showcase> mvn spring-boot:run
Access via localhost:8080/search