Re: question about DIH solr-data-config.xml and XML include

2014-01-14 Thread Bill Au
The problem is with the admin UI not following the XML include to find
entity so it found none.  DIH itself does support XML include as I can
issue the DIH commands via HTTP on the included entities successfully.

Bill


On Mon, Jan 13, 2014 at 8:03 PM, Shawn Heisey  wrote:

> On 1/13/2014 3:31 PM, Bill Au wrote:
>
>> 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?
>>
>
> Paying it forward.  Someone on this mailing list helped me with this.  I
> have tested this DIH configand found that it works:
>
> 
> http://www.w3.org/2001/XInclude";>
>driver="com.mysql.jdbc.Driver"
> encoding="UTF-8"
> url="jdbc:mysql://${dih.request.dbHost}:3306/${dih.request.dbSchema}?
> zeroDateTimeBehavior=convertToNull"
> batchSize="-1"
> user="REDACTED"
> password="REDACTED"/>
>   
>   
>   
> 
>
> The xlmns:xi attribute in the outer tag makes it possible to use the
> xi:include syntax later.
>
> I make extensive use of this in my solrconfig.xml file. There's almost no
> actual config in that file, everything is included from other files.
>
> When you look at the config in the admin UI, you will not see the included
> text, you'll only see the xi:include tag.
>
> Thanks,
> Shawn
>
>


Re: question about DIH solr-data-config.xml and XML include

2014-01-13 Thread Shawn Heisey

On 1/13/2014 3:31 PM, Bill Au wrote:

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?


Paying it forward.  Someone on this mailing list helped me with this.  I 
have tested this DIH configand found that it works:



http://www.w3.org/2001/XInclude";>
  
  
  
  


The xlmns:xi attribute in the outer tag makes it possible to use the 
xi:include syntax later.


I make extensive use of this in my solrconfig.xml file. There's almost 
no actual config in that file, everything is included from other files.


When you look at the config in the admin UI, you will not see the 
included text, you'll only see the xi:include tag.


Thanks,
Shawn



question about DIH solr-data-config.xml and XML include

2014-01-13 Thread Bill Au
I am trying to simplify my Solr DIH configuration by using XML schema
include element.  Here is an example:





]>

&dataSource;

&entity1;
&entity2;




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