lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O. Klein" <kl...@octoweb.nl>
Subject Re: Is it possible to use different types of datasource in DIH?
Date Mon, 19 Sep 2011 08:45:52 GMT
I did some more testing and it seems that as soon as you use FileDataSource
it overrides any other dataSource.

<dataConfig>
<dataSource type="HttpDataSource" name="url" encoding="UTF-8"
connectionTimeout="30000" readTimeout="30000"/>
<dataSource type="FileDataSource" encoding="UTF-8" />
<document>

<entity name="xmlroot" datasource="url" rootEntity="false"
url="http://www.server.com/rss.xml" processor="XPathEntityProcessor"
forEach="/rss/channel/item" >
    <field column="link" xpath="/rss/channel/item/link"/>
 </entity>
     
</document>
</dataConfig>

will not work, unless you remove FileDataSource. Anyone know a way to fix
this (except removing FileDataSource) ?

--
View this message in context: http://lucene.472066.n3.nabble.com/Is-it-possible-to-use-different-types-of-datasource-in-DIH-tp3344380p3348011.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message