public class ScriptHistogramFacetExecutor extends FacetExecutor
FacetExecutor.Mode, FacetExecutor.Post| Constructor and Description |
|---|
ScriptHistogramFacetExecutor(String scriptLang,
String keyScript,
ScriptService.ScriptType keyScriptType,
String valueScript,
ScriptService.ScriptType valueScriptType,
Map<String,Object> params,
long interval,
HistogramFacet.ComparatorType comparatorType,
SearchContext context) |
| Modifier and Type | Method and Description |
|---|---|
static long |
bucket(double value,
long interval) |
InternalFacet |
buildFacet(String facetName)
Builds the facet.
|
org.elasticsearch.search.facet.histogram.ScriptHistogramFacetExecutor.Collector |
collector()
A collector based facet implementation, collection the facet as hits match.
|
postpublic ScriptHistogramFacetExecutor(String scriptLang, String keyScript, ScriptService.ScriptType keyScriptType, String valueScript, ScriptService.ScriptType valueScriptType, Map<String,Object> params, long interval, HistogramFacet.ComparatorType comparatorType, SearchContext context)
public org.elasticsearch.search.facet.histogram.ScriptHistogramFacetExecutor.Collector collector()
FacetExecutorcollector in class FacetExecutorpublic InternalFacet buildFacet(String facetName)
FacetExecutorbuildFacet in class FacetExecutorpublic static long bucket(double value,
long interval)
Copyright © 2009–2016. All rights reserved.