public class ToChildBlockJoinQuery extends Query
ToParentBlockJoinQuery
, except this
query joins in reverse: you provide a Query matching
parent documents and it joins down to child
documents.Constructor and Description |
---|
ToChildBlockJoinQuery(Query parentQuery,
BitSetProducer parentsFilter)
Create a ToChildBlockJoinQuery.
|
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(Object other) |
Query |
getParentQuery()
Return our parent query.
|
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
classHash, sameClassAs, toString
public ToChildBlockJoinQuery(Query parentQuery, BitSetProducer parentsFilter)
parentQuery
- Query that matches parent documentsparentsFilter
- Filter identifying the parent documents.public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight
in class Query
IOException
public Query getParentQuery()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.