org.elasticsearch.search.facet.statistical
Class StatisticalScriptFacetBuilder
java.lang.Object
org.elasticsearch.search.facet.AbstractFacetBuilder
org.elasticsearch.search.facet.statistical.StatisticalScriptFacetBuilder
- All Implemented Interfaces:
- ToXContent
public class StatisticalScriptFacetBuilder
- extends AbstractFacetBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticalScriptFacetBuilder
public StatisticalScriptFacetBuilder(String name)
global
public StatisticalScriptFacetBuilder global(boolean global)
- Marks the facet to run in a global scope, not bounded by any query.
- Overrides:
global
in class AbstractFacetBuilder
scope
public AbstractFacetBuilder scope(String scope)
- Marks the facet to run in a specific scope.
- Overrides:
scope
in class AbstractFacetBuilder
facetFilter
public StatisticalScriptFacetBuilder facetFilter(FilterBuilder filter)
- Overrides:
facetFilter
in class AbstractFacetBuilder
nested
public StatisticalScriptFacetBuilder nested(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
lang
public StatisticalScriptFacetBuilder lang(String lang)
- The language of the script.
script
public StatisticalScriptFacetBuilder script(String script)
param
public StatisticalScriptFacetBuilder param(String name,
Object value)
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.