org.elasticsearch.search.facet.query
Class QueryFacetCollector
java.lang.Object
org.apache.lucene.search.Collector
org.elasticsearch.search.facet.FacetCollector
org.elasticsearch.search.facet.AbstractFacetCollector
org.elasticsearch.search.facet.query.QueryFacetCollector
- All Implemented Interfaces:
- OptimizeGlobalFacetCollector
public class QueryFacetCollector
- extends AbstractFacetCollector
- implements OptimizeGlobalFacetCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryFacetCollector
public QueryFacetCollector(String facetName,
org.apache.lucene.search.Query query,
FilterCache filterCache)
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
- Specified by:
doSetNextReader
in class AbstractFacetCollector
- Throws:
IOException
doCollect
protected void doCollect(int doc)
throws IOException
- Specified by:
doCollect
in class AbstractFacetCollector
- Throws:
IOException
optimizedGlobalExecution
public void optimizedGlobalExecution(SearchContext searchContext)
throws IOException
- Specified by:
optimizedGlobalExecution
in interface OptimizeGlobalFacetCollector
- Throws:
IOException
facet
public Facet facet()
- Specified by:
facet
in class FacetCollector
Copyright © 2009-2012. All Rights Reserved.