Hi

I am trying to use xi:include in my solrconfig.xml.

For example:
<xi:include href="http://localhost/config/config.aspx"; />

This works fine, as long as config.aspx exists, and as long as it returns valid 
xml.

Sometimes though, the config.aspx can fail, and return invalid xml. Then I get 
a problem, as Solr's parsing of the solrconfig.xml fails. If I use xi:fallback, 
eg:

<xi:include href="http://localhost/config/config.aspx";>
  <xi:fallback>
    <str name="qf">
      text^0.4 n^1.2 c^1.5 d^0.4 b^3
    </str>
  </xi:fallback>
</xi:include>

This helps if config.xml does not exist - then the fallback is used. But if 
config.aspx returns invalid xml, then the fallback does not appear to be used, 
and I get exceptions when I start Solr up. How can I get Solr to fallback if 
the included xml fails?

Thanks,
Peter

Reply via email to