lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Is it possible to use different types of datasource in DIH?
Date Mon, 19 Sep 2011 10:49:25 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) ?

Did you try to give a name to FileDataSource? e.g.

<dataSource type="FileDataSource" encoding="UTF-8" name="fileData"/>

Mime
View raw message