lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: including external files in config by corename
Date Tue, 06 Apr 2010 02:12:55 GMT

: The best you have to work with at the moment is Xincludes:
: 
: http://wiki.apache.org/solr/SolrConfigXml#XInclude
: 
: and System Property Substitution:
: 
: http://wiki.apache.org/solr/SolrConfigXml#System_property_substitution

Except that XInclude is a feature of hte XML parser, while property 
substitution is soemthing Solr does after the XML has been parsed into a 
DOM -- so you can't have an XInclude of a fle whose name is determined by 
a property (like the core name)

what you cna do however, is have a distinct solrconfig.xml for each core, 
which is just a thin shell that uses XInclude to include big chunkcs of 
frequently reused declarations, and some cores can exclude some of thes 
includes.  (ie: turn the problem inside out)



-Hoss


Mime
View raw message