Package org.apache.lucene.search.join
Class ToChildBlockJoinQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.join.ToChildBlockJoinQuery
Just like
ToParentBlockJoinQuery, except this query joins in reverse: you provide a Query
matching parent documents and it joins down to child documents.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionToChildBlockJoinQuery(Query parentQuery, BitSetProducer parentsFilter) Create a ToChildBlockJoinQuery. -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleanReturn our parent query.inthashCode()rewrite(IndexSearcher indexSearcher) voidvisit(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
ToChildBlockJoinQuery
Create a ToChildBlockJoinQuery.- Parameters:
parentQuery- Query that matches parent documentsparentsFilter- Filter identifying the parent documents.
-
-
Method Details
-
visit
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeightin classQuery- Throws:
IOException
-
getParentQuery
Return our parent query. -
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-