mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
Lookup Terms Filter _cache parameter not being taken into account
fixes #3219
This commit is contained in:
parent
432628086f
commit
80ede081c3
@ -169,7 +169,10 @@ public class TermsFilterParser implements FilterParser {
|
||||
cacheKey = new CacheKeyFilter.Key(termsLookup.toString());
|
||||
}
|
||||
Filter filter = termsFilterCache.lookupTermsFilter(cacheKey, termsLookup);
|
||||
filter = parseContext.cacheFilter(filter, null); // cacheKey is passed as null, so we don't double cache the key
|
||||
// cache the whole filter by default, or if explicitly told to
|
||||
if (cache == null || cache) {
|
||||
filter = parseContext.cacheFilter(filter, null); // cacheKey is passed as null, so we don't double cache the key
|
||||
}
|
||||
return filter;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user