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...
- Under the
SOLR-INDEXINGdirectory, create a
solr.xmlfile 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" ...