org.elasticsearch.search.facet.terms.doubles
Class TermsDoubleFacetCollector
java.lang.Object
org.apache.lucene.search.Collector
org.elasticsearch.search.facet.FacetCollector
org.elasticsearch.search.facet.AbstractFacetCollector
org.elasticsearch.search.facet.terms.doubles.TermsDoubleFacetCollector
public class TermsDoubleFacetCollector
- extends AbstractFacetCollector
Constructor Summary |
TermsDoubleFacetCollector(String facetName,
String fieldName,
int size,
TermsFacet.ComparatorType comparatorType,
boolean allTerms,
SearchContext context,
com.google.common.collect.ImmutableSet<String> excluded,
String scriptLang,
String script,
Map<String,Object> params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TermsDoubleFacetCollector
public TermsDoubleFacetCollector(String facetName,
String fieldName,
int size,
TermsFacet.ComparatorType comparatorType,
boolean allTerms,
SearchContext context,
com.google.common.collect.ImmutableSet<String> excluded,
String scriptLang,
String script,
Map<String,Object> params)
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
- Overrides:
setScorer
in class AbstractFacetCollector
- Throws:
IOException
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
facet
public Facet facet()
- Specified by:
facet
in class FacetCollector
Copyright © 2009-2012. All Rights Reserved.