Package org.apache.lucene.search.join
Class ParentChildrenBlockJoinQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.join.ParentChildrenBlockJoinQuery
A query that returns all the matching child documents for a specific parent document indexed
together in the same block. The provided child query determines which matching child doc is being
returned.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorDescriptionParentChildrenBlockJoinQuery
(BitSetProducer parentFilter, Query childQuery, int parentDocId) Creates aParentChildrenBlockJoinQuery
instance -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
int
hashCode()
rewrite
(IndexReader reader) void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
ParentChildrenBlockJoinQuery
Creates aParentChildrenBlockJoinQuery
instance- Parameters:
parentFilter
- A filter identifying parent documents.childQuery
- A child query that determines which child docs are matchingparentDocId
- The top level doc id of that parent to return children documents for
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
visit
-
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classQuery
- Throws:
IOException
-