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 java.lang.Object
- implements ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected final java.lang.String name
scope
protected java.lang.String scope
facetFilter
protected XContentFilterBuilder facetFilter
AbstractFacetBuilder
protected AbstractFacetBuilder(java.lang.String name)
facetFilter
public AbstractFacetBuilder facetFilter(XContentFilterBuilder filter)
global
public AbstractFacetBuilder global(boolean global)
- Marks the facet to run in a global scope, not bounded by any query.
scope
public AbstractFacetBuilder scope(java.lang.String scope)
- Marks the facet to run in a specific scope.
addFilterFacetAndGlobal
protected void addFilterFacetAndGlobal(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Throws:
java.io.IOException