Skip to content

Commit

Permalink
Core: Forget to move the child filter over to fixed bitset filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Oct 22, 2014
1 parent d7911cf commit e1dfc22
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -31,6 +31,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.fixedbitset.FixedBitSetFilter;
import org.elasticsearch.index.mapper.MapperService;
import org.elasticsearch.index.mapper.object.ObjectMapper;
import org.elasticsearch.index.search.nested.NonNestedDocsFilter;
Expand Down Expand Up @@ -139,7 +140,7 @@ public Query parse(QueryParseContext parseContext) throws IOException, QueryPars
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);
Expand Down

0 comments on commit e1dfc22

Please sign in to comment.