From 1645434af578f036abd7d178ff1b5ec8ba1ff7ea Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Fri, 31 Oct 2014 11:00:32 +0100 Subject: [PATCH] Forgot to cut over the child filter in nested filter to use fixed bitset cache. --- .../java/org/elasticsearch/index/query/NestedFilterParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/query/NestedFilterParser.java b/src/main/java/org/elasticsearch/index/query/NestedFilterParser.java index 62a69cc3154..557d371324b 100644 --- a/src/main/java/org/elasticsearch/index/query/NestedFilterParser.java +++ b/src/main/java/org/elasticsearch/index/query/NestedFilterParser.java @@ -30,6 +30,7 @@ import org.elasticsearch.common.lucene.search.XConstantScoreQuery; import org.elasticsearch.common.lucene.search.XFilteredQuery; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.cache.filter.support.CacheKeyFilter; +import org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilter; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.mapper.object.ObjectMapper; import org.elasticsearch.index.search.nested.NonNestedDocsFilter; @@ -130,7 +131,7 @@ public class NestedFilterParser implements FilterParser { throw new QueryParsingException(parseContext.index(), "[nested] nested object under path [" + path + "] is not of nested type"); } - Filter childFilter = parseContext.cacheFilter(objectMapper.nestedTypeFilter(), null); + FixedBitSetFilter childFilter = parseContext.fixedBitSetFilter(objectMapper.nestedTypeFilter()); usAsParentFilter.filter = childFilter; // wrap the child query to only work on the nested path type query = new XFilteredQuery(query, childFilter);