lucene 4: fix handling of deleted docs in TermFilter
This commit is contained in:
parent
d069212ce4
commit
c8cf72d657
|
@ -53,8 +53,7 @@ public class TermFilter extends Filter {
|
||||||
if (!termsEnum.seekExact(term.bytes(), false)) {
|
if (!termsEnum.seekExact(term.bytes(), false)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// LUCENE 4 UPGRADE: For leave acceptedDocs null, until we figure out how to deal with deleted docs...
|
DocsEnum docsEnum = termsEnum.docs(acceptDocs, null);
|
||||||
DocsEnum docsEnum = termsEnum.docs(null, null);
|
|
||||||
int docId = docsEnum.nextDoc();
|
int docId = docsEnum.nextDoc();
|
||||||
if (docId == DocsEnum.NO_MORE_DOCS) {
|
if (docId == DocsEnum.NO_MORE_DOCS) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue