O'Reilly logo

Apache Solr for Indexing Data by Anshul Johri, Sachin Handiekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building our musicCatalogue example

In our previous section, we saw how we can create a Solr schema using different fields and field types. Now let's use this schema to create a working Solr example.

To do this, we'll need to follow these steps:

  1. As we've already created the folder structure required for our musicCatalogue example to work, let's go ahead and create the solrconfig.xml config file.

    The solrconfig.xml looks like the following:

    <?xml version="1.0" encoding="UTF-8" ?> <config> <luceneMatchVersion>4.10.1</luceneMatchVersion> <dataDir>${solr.data.dir:}</dataDir> <requestDispatcher handleSelect="false"> <httpCaching never304="true"/> </requestDispatcher> <requestHandler name="/select" class="solr.SearchHandler" /> <requestHandler name="/update" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required