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
ConstructorDescriptionToChildBlockJoinQuery
(Query parentQuery, BitSetProducer parentsFilter) Create a ToChildBlockJoinQuery. -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
Return our parent query.int
hashCode()
rewrite
(IndexReader reader) void
visit
(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:
createWeight
in classQuery
- Throws:
IOException
-
getParentQuery
Return our parent query. -
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-