lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "DataImportHandler" by SaschaSzott
Date Tue, 08 Sep 2009 15:54:49 GMT
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"]

Mime
View raw message