Bryan Talbot schrieb:
So how are people managing solrconfig.xml files which are largely the
same other than differences for replication?
I don't think it's a "good thing" to maintain two copies of the same
file and I'd like to avoid that. Maybe enabling the XInclude feature
in DocumentBuilders would make it possible to modularize configuration
files to make this possible?
This is already possible using the XML feature called "entities",
more precisely "external general parsed entities" (EGPE). I've never
seen a parser that doesn't do entities.
C:\MILU\dev\XML # type egpe-net.xml
<!DOCTYPE Urmel [
<!ENTITY egpe_from_the_net
SYSTEM "http://lobster.as-guides.com/ds/solr.schema.ent" >
<!ENTITY egpe_from_the_local_disk
SYSTEM "egpe-local.ent" >
]>
<Urmel>
&egpe_from_the_net;
&egpe_from_the_local_disk;
</Urmel>
C:\MILU\dev\XML # type egpe-local.ent
<eins/>
<zwei/>
<drei/>
Michael Ludwig