public final class ESToParentBlockJoinQuery
extends org.apache.lucene.search.Query
ToParentBlockJoinQuery that allows to retrieve its nested path.| Constructor and Description |
|---|
ESToParentBlockJoinQuery(org.apache.lucene.search.Query childQuery,
org.apache.lucene.search.join.BitSetProducer parentsFilter,
org.apache.lucene.search.join.ScoreMode scoreMode,
java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(java.lang.Object obj) |
org.apache.lucene.search.Query |
getChildQuery()
Return the child query.
|
java.lang.String |
getPath()
Return the path of results of this query, or
null if matches are at the root level. |
int |
hashCode() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
java.lang.String |
toString(java.lang.String field) |
public ESToParentBlockJoinQuery(org.apache.lucene.search.Query childQuery,
org.apache.lucene.search.join.BitSetProducer parentsFilter,
org.apache.lucene.search.join.ScoreMode scoreMode,
java.lang.String path)
public org.apache.lucene.search.Query getChildQuery()
public java.lang.String getPath()
null if matches are at the root level.public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
rewrite in class org.apache.lucene.search.Queryjava.io.IOExceptionpublic org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores,
float boost)
throws java.io.IOException
createWeight in class org.apache.lucene.search.Queryjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class org.apache.lucene.search.Querypublic int hashCode()
hashCode in class org.apache.lucene.search.Querypublic java.lang.String toString(java.lang.String field)
toString in class org.apache.lucene.search.Query