Package org.elasticsearch.search
Class NestedDocuments
java.lang.Object
org.elasticsearch.search.NestedDocuments
Manages loading information about nested documents
-
Constructor Summary
ConstructorDescriptionNestedDocuments
(MappingLookup mappingLookup, Version indexVersionCreated, 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 TypeMethodDescriptiongetLeafNestedDocuments
(org.apache.lucene.index.LeafReaderContext ctx) Returns a LeafNestedDocuments for an index segment
-
Constructor Details
-
NestedDocuments
public NestedDocuments(MappingLookup mappingLookup, Version indexVersionCreated, Function<org.apache.lucene.search.Query, org.apache.lucene.search.join.BitSetProducer> filterProducer) Create a new NestedDocuments object for an index- Parameters:
mappingLookup
- the index's mappingfilterProducer
- a function to build BitSetProducers from filter queries
-
-
Method Details
-
getLeafNestedDocuments
public LeafNestedDocuments getLeafNestedDocuments(org.apache.lucene.index.LeafReaderContext ctx) throws IOException Returns a LeafNestedDocuments for an index segment- Throws:
IOException
-