Package org.elasticsearch.search
Class NestedDocuments
java.lang.Object
org.elasticsearch.search.NestedDocuments
public class NestedDocuments
extends java.lang.Object
Manages loading information about nested documents
-
Constructor Summary
Constructors Constructor Description NestedDocuments(MapperService mapperService, java.util.function.Function<org.apache.lucene.search.Query,org.apache.lucene.search.join.BitSetProducer> filterProducer)
Create a new NestedDocuments object for an index -
Method Summary
Modifier and Type Method Description LeafNestedDocuments
getLeafNestedDocuments(org.apache.lucene.index.LeafReaderContext ctx)
Returns a LeafNestedDocuments for an index segmentboolean
hasNonNestedParent(java.lang.String path)
Given an object path, returns whether or not any of its parents are plain objects
-
Constructor Details
-
NestedDocuments
public NestedDocuments(MapperService mapperService, java.util.function.Function<org.apache.lucene.search.Query,org.apache.lucene.search.join.BitSetProducer> filterProducer)Create a new NestedDocuments object for an index- Parameters:
mapperService
- the index's MapperServicefilterProducer
- a function to build BitSetProducers from filter queries
-
-
Method Details
-
getLeafNestedDocuments
public LeafNestedDocuments getLeafNestedDocuments(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOExceptionReturns a LeafNestedDocuments for an index segment- Throws:
java.io.IOException
-
hasNonNestedParent
public boolean hasNonNestedParent(java.lang.String path)Given an object path, returns whether or not any of its parents are plain objects
-