Class IndexFieldData.XFieldComparatorSource.Nested
java.lang.Object
org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource.Nested
- Enclosing class:
- IndexFieldData.XFieldComparatorSource
Simple wrapper class around a filter that matches parent documents
and a filter that matches child documents. For every root document R,
R will be in the parent filter and its children documents will be the
documents that are contained in the inner set between the previous
parent + 1, or 0 if there is no previous parent, and R (excluded).
-
Constructor Summary
ConstructorDescriptionNested(org.apache.lucene.search.join.BitSetProducer rootFilter, org.apache.lucene.search.Query innerQuery, NestedSortBuilder nestedSort, org.apache.lucene.search.IndexSearcher searcher)
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Query
org.apache.lucene.search.DocIdSetIterator
innerDocs(org.apache.lucene.index.LeafReaderContext ctx)
Get aDocIdSet
that matches the inner documents.org.apache.lucene.util.BitSet
rootDocs(org.apache.lucene.index.LeafReaderContext ctx)
Get aBitDocIdSet
that matches the root documents.
-
Constructor Details
-
Nested
public Nested(org.apache.lucene.search.join.BitSetProducer rootFilter, org.apache.lucene.search.Query innerQuery, NestedSortBuilder nestedSort, org.apache.lucene.search.IndexSearcher searcher)
-
-
Method Details
-
getInnerQuery
public org.apache.lucene.search.Query getInnerQuery() -
getNestedSort
-
rootDocs
public org.apache.lucene.util.BitSet rootDocs(org.apache.lucene.index.LeafReaderContext ctx) throws IOExceptionGet aBitDocIdSet
that matches the root documents.- Throws:
IOException
-
innerDocs
public org.apache.lucene.search.DocIdSetIterator innerDocs(org.apache.lucene.index.LeafReaderContext ctx) throws IOExceptionGet aDocIdSet
that matches the inner documents.- Throws:
IOException
-