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 NoblePaul: http://wiki.apache.org/solr/DataImportHandler ------------------------------------------------------------------------------ example: {{{ - <entity processor="PlainTextEntityProcessor" name="x" url="http://abc.com/a.txt"> + <entity processor="PlainTextEntityProcessor" name="x" url="http://abc.com/a.txt" dataSource="data-source-name"> <!-- copies the text to a field called 'text' in Solr--> <field column="plainText" name="text"/> </entity> }}} + Ensure that the dataSource is of type !DataSource<Reader> (!FileDataSource, URL!DataSource) - 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=".*txt" 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)]]
