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>${}</dataDir> <requestDispatcher handleSelect="false"> <httpCaching never304="true"/> </requestDispatcher> <requestHandler name="/select" class="solr.SearchHandler" /> <requestHandler name="/update" ...

Get Apache Solr for Indexing Data now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.