lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
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 core.properties
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
patch).

Erick

On Fri, Dec 9, 2016 at 6:05 AM, Sunil Varma <sunil.k.varma@gmail.com> 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=${solr.data.dir}\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=${solr.data.dir}/ds" ?
>
> Note: If I explicitly modify the core.properties "dataDir" to
> ${solr.data.dir}\ds , it works as expected and the index files gets created
> at this location.
>
> This is using Solr 6.3.
>
> Thanks
> Sunil

Mime
View raw message