properly set the set flag
This commit is contained in:
parent
c561b1bbcf
commit
b91cb8b779
|
@ -158,6 +158,7 @@ public class IndicesTermsFilterCache extends AbstractComponent {
|
||||||
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
|
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
|
||||||
// only call the terms filter once per execution (across segments per single search request)
|
// only call the terms filter once per execution (across segments per single search request)
|
||||||
if (!termsFilterCalled) {
|
if (!termsFilterCalled) {
|
||||||
|
termsFilterCalled = true;
|
||||||
termsFilter = cache.termsFilter(cacheKey, lookup);
|
termsFilter = cache.termsFilter(cacheKey, lookup);
|
||||||
}
|
}
|
||||||
if (termsFilter == null) return null;
|
if (termsFilter == null) return null;
|
||||||
|
|
Loading…
Reference in New Issue