Package org.apache.lucene.search.join
Class ToChildBlockJoinQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.join.ToChildBlockJoinQuery
-
public class ToChildBlockJoinQuery extends Query
Just likeToParentBlockJoinQuery, 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
Constructors Constructor Description ToChildBlockJoinQuery(Query parentQuery, BitSetProducer parentsFilter)Create a ToChildBlockJoinQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object other)QuerygetParentQuery()Return our parent query.inthashCode()Queryrewrite(IndexSearcher indexSearcher)StringtoString(String field)voidvisit(QueryVisitor visitor)-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Constructor Detail
-
ToChildBlockJoinQuery
public ToChildBlockJoinQuery(Query parentQuery, BitSetProducer parentsFilter)
Create a ToChildBlockJoinQuery.- Parameters:
parentQuery- Query that matches parent documentsparentsFilter- Filter identifying the parent documents.
-
-
Method Detail
-
visit
public void visit(QueryVisitor visitor)
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeightin classQuery- Throws:
IOException
-
getParentQuery
public Query getParentQuery()
Return our parent query.
-
rewrite
public Query rewrite(IndexSearcher indexSearcher) throws IOException
- Overrides:
rewritein classQuery- Throws:
IOException
-
-