org.elasticsearch.index.search.child
Class TopChildrenQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.index.search.child.TopChildrenQuery
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ScopePhase, ScopePhase.TopDocsPhase
public class TopChildrenQuery
- extends org.apache.lucene.search.Query
- implements ScopePhase.TopDocsPhase
- See Also:
- Serialized Form
Constructor Summary |
TopChildrenQuery(org.apache.lucene.search.Query query,
java.lang.String scope,
java.lang.String childType,
java.lang.String parentType,
TopChildrenQuery.ScoreType scoreType,
int factor,
int incrementalFactor)
|
Methods inherited from class org.apache.lucene.search.Query |
clone, combine, equals, getBoost, getSimilarity, hashCode, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TopChildrenQuery
public TopChildrenQuery(org.apache.lucene.search.Query query,
java.lang.String scope,
java.lang.String childType,
java.lang.String parentType,
TopChildrenQuery.ScoreType scoreType,
int factor,
int incrementalFactor)
query
public org.apache.lucene.search.Query query()
- Specified by:
query
in interface ScopePhase
scope
public java.lang.String scope()
- Specified by:
scope
in interface ScopePhase
clear
public void clear()
- Specified by:
clear
in interface ScopePhase
numHits
public int numHits()
- Specified by:
numHits
in interface ScopePhase.TopDocsPhase
factor
public int factor()
- Specified by:
factor
in interface ScopePhase.TopDocsPhase
incrementalFactor
public int incrementalFactor()
- Specified by:
incrementalFactor
in interface ScopePhase.TopDocsPhase
processResults
public void processResults(org.apache.lucene.search.TopDocs topDocs,
SearchContext context)
- Specified by:
processResults
in interface ScopePhase.TopDocsPhase
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Overrides:
rewrite
in class org.apache.lucene.search.Query
- Throws:
java.io.IOException
extractTerms
public void extractTerms(java.util.Set<org.apache.lucene.index.Term> terms)
- Overrides:
extractTerms
in class org.apache.lucene.search.Query
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
throws java.io.IOException
- Overrides:
createWeight
in class org.apache.lucene.search.Query
- Throws:
java.io.IOException
toString
public java.lang.String toString(java.lang.String field)
- Specified by:
toString
in class org.apache.lucene.search.Query