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
ConstructorDescriptionESToParentBlockJoinQuery(org.apache.lucene.search.Query childQuery, org.apache.lucene.search.join.BitSetProducer parentsFilter, org.apache.lucene.search.join.ScoreMode scoreMode, String path)
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
org.apache.lucene.search.Query
Return the child query.getPath()
Return the path of results of this query, ornull
if matches are at the root level.org.apache.lucene.search.join.ScoreMode
Return the score mode for the matching children.int
hashCode()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
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, String path)
-
-
Method Details
-
getChildQuery
public org.apache.lucene.search.Query getChildQuery()Return the child query. -
getPath
Return the path of results of this query, ornull
if 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 IOException- Overrides:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visit
in 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 IOException- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-