org.elasticsearch.index.search.child
Class TopChildrenQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by org.elasticsearch.index.search.child.TopChildrenQuery
All Implemented Interfaces:
Serializable, Cloneable, ScopePhase, ScopePhase.TopDocsPhase

public class TopChildrenQuery
extends org.apache.lucene.search.Query
implements ScopePhase.TopDocsPhase

See Also:
Serialized Form

Nested Class Summary
static class TopChildrenQuery.ParentDoc
           
static class TopChildrenQuery.ScoreType
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.internal.ScopePhase
ScopePhase.CollectorPhase, ScopePhase.TopDocsPhase
 
Constructor Summary
TopChildrenQuery(org.apache.lucene.search.Query query, String scope, String childType, String parentType, TopChildrenQuery.ScoreType scoreType, int factor, int incrementalFactor)
           
 
Method Summary
 void clear()
           
 org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
           
 void extractTerms(Set<org.apache.lucene.index.Term> terms)
           
 int factor()
           
 int incrementalFactor()
           
 int numHits()
           
 void processResults(org.apache.lucene.search.TopDocs topDocs, SearchContext context)
           
 org.apache.lucene.search.Query query()
           
 org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
           
 String scope()
           
 String toString(String field)
           
 
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
 

Constructor Detail

TopChildrenQuery

public TopChildrenQuery(org.apache.lucene.search.Query query,
                        String scope,
                        String childType,
                        String parentType,
                        TopChildrenQuery.ScoreType scoreType,
                        int factor,
                        int incrementalFactor)
Method Detail

query

public org.apache.lucene.search.Query query()
Specified by:
query in interface ScopePhase

scope

public 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 IOException
Overrides:
rewrite in class org.apache.lucene.search.Query
Throws:
IOException

extractTerms

public void extractTerms(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 IOException
Overrides:
createWeight in class org.apache.lucene.search.Query
Throws:
IOException

toString

public String toString(String field)
Specified by:
toString in class org.apache.lucene.search.Query


Copyright © 2009-2012. All Rights Reserved.