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) |
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.Query
java.io.IOException
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores) throws java.io.IOException
createWeight
in class org.apache.lucene.search.Query
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class org.apache.lucene.search.Query
public int hashCode()
hashCode
in class org.apache.lucene.search.Query
public java.lang.String toString(java.lang.String field)
toString
in class org.apache.lucene.search.Query