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