org.elasticsearch.search.facet.histogram
Class HistogramScriptFacetBuilder
java.lang.Object
org.elasticsearch.search.facet.AbstractFacetBuilder
org.elasticsearch.search.facet.histogram.HistogramScriptFacetBuilder
- All Implemented Interfaces:
- ToXContent
public class HistogramScriptFacetBuilder
- extends AbstractFacetBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistogramScriptFacetBuilder
public HistogramScriptFacetBuilder(java.lang.String name)
lang
public HistogramScriptFacetBuilder lang(java.lang.String lang)
- The language of the script.
keyField
public HistogramScriptFacetBuilder keyField(java.lang.String keyFieldName)
keyScript
public HistogramScriptFacetBuilder keyScript(java.lang.String keyScript)
valueScript
public HistogramScriptFacetBuilder valueScript(java.lang.String valueScript)
interval
public HistogramScriptFacetBuilder interval(long interval)
param
public HistogramScriptFacetBuilder param(java.lang.String name,
java.lang.Object value)
comparator
public HistogramScriptFacetBuilder comparator(HistogramFacet.ComparatorType comparatorType)
global
public HistogramScriptFacetBuilder global(boolean global)
- Marks the facet to run in a global scope, not bounded by any query.
- Overrides:
global
in class AbstractFacetBuilder
scope
public HistogramScriptFacetBuilder scope(java.lang.String scope)
- Marks the facet to run in a specific scope.
- Overrides:
scope
in class AbstractFacetBuilder
bounds
public HistogramScriptFacetBuilder bounds(java.lang.Object from,
java.lang.Object to)
- Sets the bounds from and to for the facet. Both performs bounds check and includes only
values within the bounds, and improves performance.
facetFilter
public HistogramScriptFacetBuilder facetFilter(FilterBuilder filter)
- Overrides:
facetFilter
in class AbstractFacetBuilder
nested
public HistogramScriptFacetBuilder nested(java.lang.String nested)
- Sets the nested path the facet will execute on. A match (root object) will then cause all the
nested objects matching the path to be computed into the facet.
- Overrides:
nested
in class AbstractFacetBuilder
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Throws:
java.io.IOException