How to specify drive when creating solrcloud collection

226 Views Asked by At

When I create a collection via the SOLR Cloud collection API https://cwiki.apache.org/confluence/display/solr/Collections+API

How do I specify which drive the collection should be created on?

I'd like to be able to put different collections on different drives.

This is on a Windows Server.

1

There are 1 best solutions below

0
On

If you check the Collection CREATE section in the Solr Cloud Collection API that you mentioned, you'll see that is possible to specify additional properties in the format

property.name=value

more specifically if you check the wiki Defining core.properties you'll see that is possible to specify the data directory property

dataDir: The core's data directory (where indexes are stored) as either an absolute pathname, or a path relative to the value of instanceDir. This is data by default.

in the following way:

&property.dataDir=/mydrive/mylocation

that wills work with data (the index) directory. The same wiki contains also other properties to specify the locations for other artifacts.