Recall from Chapter 2, Schema Design, that you can either put different types of data into a single index or use separate indexes. Up to this point, the only way you would know how to use separate indexes is to actually run multiple instances of Solr. However, adding another complete instance of Solr for each type of data you want to index is rather time consuming and unnecessary.
A Solr server instance supports multiple separate indexes (cores) to exist within a single Solr server instance as well as bringing features like hot core reloading and swapping that make administration easier. In fact, the MusicBrainz setup with this book has 6 cores. The core name immediately follows the /solr/
part and precedes the request handler (for example, /select
). In SolrCloud mode, this spot is the collection name. In this URL, we search the mbartists
core like this:
http://localhost:8983/solr/mbartists/select?q=dave%20matthews
Other than the introduction of the core name in the URL...