lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Szott <sz...@zib.de>
Subject DataImportHandler in Solr 1.4.1: exception handling in FileListEntityProcessor
Date Wed, 11 Aug 2010 13:18:08 GMT
Hi folks,

why does FileListEntityProcessor ignores onError="continue" and abort 
indexing if a directory or a file does not exist?

I'm using both XPathEntityProcessor and FileListEntityProcessor with 
onError set to continue. In case a directory or file is not present an 
Exception is thrown and indexing is stopped immediately.

Below you can find a stack trace that is generated in case the directory 
/home/doe/foo does not exist:

SEVERE: Full Import failed
org.apache.solr.handler.dataimport.DataImportHandlerException: 'baseDir' 
value: /home/doe/foo/bar.xml is not a directory Processing Document # 3
         at 
org.apache.solr.handler.dataimport.FileListEntityProcessor.init(FileListEntityProcessor.java:122)
         at 
org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:71)
         at 
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:319)
         at 
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:383)
         at 
org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:242)
         at 
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:180)
         at 
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:331)
         at 
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:389)
         at 
org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:370)

How should I configure both processors so that missing directories and 
files are ignored and the indexing process does not stop immediately?

Best,
Sascha

Mime
View raw message