lucene 4: fix handling of deleted docs in TermFilter

This commit is contained in:
Igor Motov 2012-11-06 08:45:44 -05:00 committed by Shay Banon
parent d069212ce4
commit c8cf72d657
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ public class TermFilter extends Filter {
if (!termsEnum.seekExact(term.bytes(), false)) {
return null;
}
// LUCENE 4 UPGRADE: For leave acceptedDocs null, until we figure out how to deal with deleted docs...
DocsEnum docsEnum = termsEnum.docs(null, null);
DocsEnum docsEnum = termsEnum.docs(acceptDocs, null);
int docId = docsEnum.nextDoc();
if (docId == DocsEnum.NO_MORE_DOCS) {
return null;