I am trying to simplify my Solr DIH configuration by using XML schema
include element.  Here is an example:

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE doc [
<!ENTITY dataSource SYSTEM "include_datasource.xml">
<!ENTITY article SYSTEM "include_entity1.xml">
<!ENTITY article SYSTEM "include_entity2.xml">
]>
<dataConfig>
    &dataSource;
    <document>
        &entity1;
        &entity2;
    </document>
</dataConfig>


I know my included XML files are good because if I put them all into a
single XML file, DIH works as expected.

But when I use XML include, the Entity pull-down in the Dataimport section
of the Solr admin UI is empty.  I know that happens when there is a syntax
error in solr-data-config.xml.  Does DIH supports XML include?  Also I am
not seeing any error message in the log even if I set log level to ALL.  Is
there any way to get DIH to log what it thinks is wrong solr-data-cofig.xml?

BTW, the admin UI show the DIH config as shown above.  So I suspecting that
DIH isn't actually doing the XML include.

Bill

Reply via email to