properly set the set flag

This commit is contained in:
Shay Banon 2013-06-25 00:05:36 +02:00
parent c561b1bbcf
commit b91cb8b779
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ public class IndicesTermsFilterCache extends AbstractComponent {
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
// only call the terms filter once per execution (across segments per single search request)
if (!termsFilterCalled) {
termsFilterCalled = true;
termsFilter = cache.termsFilter(cacheKey, lookup);
}
if (termsFilter == null) return null;