This repository contains the example code I used for my talk on Lucene and Solr I gave for the Java User Group Karlsruhe. It consists of a subproject, lucene, that contains the logic for indexing and searching using Lucene. The subproject solr-indexer is used to index data in a running Solr instance, solr provides the configuration as well as some tests. web contains a very simple Dropwizard web app that can be used to query Lucene as well as Solr.
See the README files in the individual projects for information on running the application. You need to have Maven as well as Gradle installed.
Note that this code is developed for demonstration purpose and doesn't necessarily reflect all aspects of how to implement a production search service.