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:
- As we've already created the folder structure required for our
musicCatalogue
example to work, let's go ahead and create thesolrconfig.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" ...
Get Apache Solr for Indexing Data now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.