diff --git a/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java b/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java index 54aa46b7bc2..88f1349fc5a 100644 --- a/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java +++ b/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java @@ -53,7 +53,7 @@ public class TermFilter extends Filter { if (!termsEnum.seekExact(term.bytes(), false)) { return null; } - DocsEnum docsEnum = termsEnum.docs(acceptDocs, null); + DocsEnum docsEnum = termsEnum.docs(acceptDocs, null, DocsEnum.FLAG_NONE); int docId = docsEnum.nextDoc(); if (docId == DocsEnum.NO_MORE_DOCS) { return null;