Package org.elasticsearch.index.search
Class ESToParentBlockJoinQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.index.search.ESToParentBlockJoinQuery
public final class ESToParentBlockJoinQuery
extends org.apache.lucene.search.Query
A
ToParentBlockJoinQuery that allows to retrieve its nested path.-
Constructor Summary
Constructors Constructor 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) -
Method Summary
Modifier and Type Method Description org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)booleanequals(java.lang.Object obj)org.apache.lucene.search.QuerygetChildQuery()Return the child query.java.lang.StringgetPath()Return the path of results of this query, ornullif matches are at the root level.org.apache.lucene.search.join.ScoreModegetScoreMode()Return the score mode for the matching children.inthashCode()org.apache.lucene.search.Queryrewrite(org.apache.lucene.index.IndexReader reader)java.lang.StringtoString(java.lang.String field)voidvisit(org.apache.lucene.search.QueryVisitor visitor)Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ESToParentBlockJoinQuery
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)
-
-
Method Details
-
getChildQuery
public org.apache.lucene.search.Query getChildQuery()Return the child query. -
getPath
public java.lang.String getPath()Return the path of results of this query, ornullif matches are at the root level. -
getScoreMode
public org.apache.lucene.search.join.ScoreMode getScoreMode()Return the score mode for the matching children. -
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException- Overrides:
rewritein classorg.apache.lucene.search.Query- Throws:
java.io.IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visitin classorg.apache.lucene.search.Query
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws java.io.IOException- Overrides:
createWeightin classorg.apache.lucene.search.Query- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
toString
public java.lang.String toString(java.lang.String field)- Specified by:
toStringin classorg.apache.lucene.search.Query
-