org.elasticsearch.index.search.child
Class HasChildFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.elasticsearch.index.search.child.HasChildFilter
All Implemented Interfaces:
Serializable, ScopePhase, ScopePhase.CollectorPhase

public class HasChildFilter
extends org.apache.lucene.search.Filter
implements ScopePhase.CollectorPhase

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.internal.ScopePhase
ScopePhase.CollectorPhase, ScopePhase.TopDocsPhase
 
Constructor Summary
HasChildFilter(org.apache.lucene.search.Query query, String scope, String childType, String parentType, SearchContext searchContext)
           
 
Method Summary
 void clear()
           
 org.apache.lucene.search.Collector collector()
           
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
           
 void processCollector(org.apache.lucene.search.Collector collector)
           
 org.apache.lucene.search.Query query()
           
 boolean requiresProcessing()
           
 String scope()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HasChildFilter

public HasChildFilter(org.apache.lucene.search.Query query,
                      String scope,
                      String childType,
                      String parentType,
                      SearchContext searchContext)
Method Detail

query

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

requiresProcessing

public boolean requiresProcessing()
Specified by:
requiresProcessing in interface ScopePhase.CollectorPhase

collector

public org.apache.lucene.search.Collector collector()
Specified by:
collector in interface ScopePhase.CollectorPhase

processCollector

public void processCollector(org.apache.lucene.search.Collector collector)
Specified by:
processCollector in interface ScopePhase.CollectorPhase

scope

public String scope()
Specified by:
scope in interface ScopePhase

clear

public void clear()
Specified by:
clear in interface ScopePhase

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
                                              throws IOException
Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.