You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/09/08 17:54:49 UTC

[Solr Wiki] Update of "DataImportHandler" by SaschaSzott

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by SaschaSzott:
http://wiki.apache.org/solr/DataImportHandler

------------------------------------------------------------------------------
  </entity>
  }}}
  
+ If you're using this !EntityProcessor in conjunction with !FileListEntityProcessor, you must specify the dataSource attribute, e.g., to read all txt files in directory `/foo` use
+ {{{
+ <entity name="dir" processor="FileListEntityProcessor" baseDir="/foo" fileName=".*" rootEntity="false">
+   <entity processor="PlainTextEntityProcessor" name="plaintxt" url="${dir.fileAbsolutePath}" dataSource="fs">
+     <field column="plainText" name="text"/>
+   </entity>
+ </entity>
+ }}}
+ where fs is of type !FileDataSource
+ {{{
+ <dataSource name="fs" type="FileDataSource" />
+ }}}
+ 
+ 
  === LineEntityProcessor ===
  [[Anchor(LineEntityProcessor)]]
  <!> ["Solr1.4"]