lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georg Sorst <g.so...@findologic.com>
Subject User-defined properties and configsets
Date Sat, 23 Jan 2016 23:22:16 GMT
Hi list!

I've just started playing with Solr 5 (upgrading from Solr 4) and want to
use configsets. I'm currently struggling with how to use user-defined
properties and configsets together.

My solrconfig.xml contains a few properties. Previously these were in a
solrcore.properties and thus were properly loaded and substituted by Solr.

Now I've moved my configuration to a configset (as I may need to create
several cores with the same config). When I create a core with
http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&configSet=myconfigset
Solr
tells me:

Caused by: org.apache.solr.common.SolrException: Error loading solr config
from /<solr home>/configsets/myconfigset/conf/solrconfig.xml
at
org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:186)
at
org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:94)
at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:74)
... 30 more
Caused by: org.apache.solr.common.SolrException: No system property or
default value specified for <myproperty> value:
    <the line from solrconfig.xml containing the property>
at
org.apache.solr.util.PropertiesUtil.substituteProperty(PropertiesUtil.java:66)
...

Where should I put my properties so Solr can load them when I create a new
core using this config set? From what I read I could specify them as system
properties (-Dmyproperty=...) but I'd rather keep them in a file that I can
check in.

Thanks!
Georg

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message