org.elasticsearch.search.facet
Class AbstractFacetBuilder
java.lang.Object
org.elasticsearch.search.facet.AbstractFacetBuilder
- All Implemented Interfaces:
- ToXContent
- Direct Known Subclasses:
- DateHistogramFacetBuilder, FilterFacetBuilder, GeoDistanceFacetBuilder, HistogramFacetBuilder, HistogramScriptFacetBuilder, QueryFacetBuilder, RangeFacetBuilder, RangeScriptFacetBuilder, StatisticalFacetBuilder, StatisticalScriptFacetBuilder, TermsFacetBuilder, TermsStatsFacetBuilder
public abstract class AbstractFacetBuilder
- extends Object
- implements ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected final String name
scope
protected String scope
facetFilter
protected FilterBuilder facetFilter
nested
protected String nested
AbstractFacetBuilder
protected AbstractFacetBuilder(String name)
facetFilter
public AbstractFacetBuilder facetFilter(FilterBuilder filter)
nested
public AbstractFacetBuilder 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.
global
public AbstractFacetBuilder global(boolean global)
- Marks the facet to run in a global scope, not bounded by any query.
scope
public AbstractFacetBuilder scope(String scope)
- Marks the facet to run in a specific scope.
addFilterFacetAndGlobal
protected void addFilterFacetAndGlobal(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.