lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Substitution variable and Collection api
Date Fri, 09 Dec 2016 16:39:19 GMT
I took a quick look at the code and really don't see any attempt to
resolve sysvars in the collection create code so I don't think this is
supported. Certainly sysvar substitution when reading
files is supported.

I don't know what gotchas there'd be in supporting this, you could
raise a JIRA to discuss it if you'd like (even better provide a


On Fri, Dec 9, 2016 at 6:05 AM, Sunil Varma <> wrote:
> Hi
> I am trying to create a collection via Collection API and set  a core
> property to use system substitution  variable as shown below:
> http://localhost:8090/solr/admin/collections?action=
> CREATE&name=ds&numShards=1&replicationFactor=1&
> maxShardsPerNode=1&collection.configName=ds&property.
> dataDir=${}\ds
> This doesn't work as the index files are getting created at the root folder
> (c:/ds/).
> How do I force it to accept the value as a literal string so that it is set
> as "dataDir=${}/ds" ?
> Note: If I explicitly modify the "dataDir" to
> ${}\ds , it works as expected and the index files gets created
> at this location.
> This is using Solr 6.3.
> Thanks
> Sunil

View raw message