SOLR-1759: $skipDoc was not working correctly

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@906906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2010-02-05 11:50:37 +00:00
parent c96611b8f1
commit 72638ac32a
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,8 @@ Bug Fixes
* SOLR-1598: Reader used in PlainTextEntityProcessor is not explicitly closed (Sascha Szott via noble) * SOLR-1598: Reader used in PlainTextEntityProcessor is not explicitly closed (Sascha Szott via noble)
* SOLR-1759: $skipDoc was not working correctly (Gian Marco Tagliani via noble)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -635,6 +635,7 @@ public class DocBuilder {
if (isRoot) { if (isRoot) {
if (e.getErrCode() == DataImportHandlerException.SKIP) { if (e.getErrCode() == DataImportHandlerException.SKIP) {
importStatistics.skipDocCount.getAndIncrement(); importStatistics.skipDocCount.getAndIncrement();
doc = null;
} else { } else {
LOG.error("Exception while processing: " LOG.error("Exception while processing: "
+ entity.name + " document : " + doc, e); + entity.name + " document : " + doc, e);