Any takers? Georg Sorst <g.so...@findologic.com> schrieb am So., 24. Jän. 2016 00:22:
> 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 > > >