Running several collections at once (Simple)

It is possible to run Solr with only one collection. In fact, most of the small and mid-size production installations do just that. However, we are going to set up Solr in a way that allows us to run several collections at once. This gives us an easier way to compare the content of different examples without having to start and stop different Solr instances or without having multiple server instances running on different ports.

How to do it...

  1. Under the SOLR-INDEXING directory, create a solr.xml file with the following content:
    <?xml version="1.0" encoding="UTF-8" ?> <solr> <cores adminPath="/admin/cores"> <core name="collection1" instanceDir="collection1" /> <core name="multivalued" instanceDir="multivalued" ...

Get Instant Apache Solr for Indexing Data How-to now with O’Reilly online learning.

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