public class ValueScriptHistogramFacetExecutor extends FacetExecutor
Modifier and Type | Class and Description |
---|---|
static class |
ValueScriptHistogramFacetExecutor.HistogramProc |
FacetExecutor.Mode, FacetExecutor.Post
Constructor and Description |
---|
ValueScriptHistogramFacetExecutor(IndexNumericFieldData indexFieldData,
String scriptLang,
String valueScript,
ScriptService.ScriptType scriptType,
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.ValueScriptHistogramFacetExecutor.Collector |
collector()
A collector based facet implementation, collection the facet as hits match.
|
post
public ValueScriptHistogramFacetExecutor(IndexNumericFieldData indexFieldData, String scriptLang, String valueScript, ScriptService.ScriptType scriptType, Map<String,Object> params, long interval, HistogramFacet.ComparatorType comparatorType, SearchContext context)
public org.elasticsearch.search.facet.histogram.ValueScriptHistogramFacetExecutor.Collector collector()
FacetExecutor
collector
in class FacetExecutor
public InternalFacet buildFacet(String facetName)
FacetExecutor
buildFacet
in class FacetExecutor
public static long bucket(double value, long interval)
Copyright © 2009–2015. All rights reserved.