org.elasticsearch.search.facet.statistical
Class StatisticalFacetBuilder

java.lang.Object
  extended by org.elasticsearch.search.facet.AbstractFacetBuilder
      extended by org.elasticsearch.search.facet.statistical.StatisticalFacetBuilder
All Implemented Interfaces:
ToXContent

public class StatisticalFacetBuilder
extends AbstractFacetBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from class org.elasticsearch.search.facet.AbstractFacetBuilder
facetFilter, global, name
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
StatisticalFacetBuilder(java.lang.String name)
           
 
Method Summary
 StatisticalFacetBuilder facetFilter(XContentFilterBuilder filter)
           
 StatisticalFacetBuilder field(java.lang.String field)
           
 StatisticalFacetBuilder fields(java.lang.String... fields)
          The fields the terms will be collected from.
 StatisticalFacetBuilder global(boolean global)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params)
           
 
Methods inherited from class org.elasticsearch.search.facet.AbstractFacetBuilder
addFilterFacetAndGlobal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticalFacetBuilder

public StatisticalFacetBuilder(java.lang.String name)
Method Detail

field

public StatisticalFacetBuilder field(java.lang.String field)

fields

public StatisticalFacetBuilder fields(java.lang.String... fields)
The fields the terms will be collected from.


global

public StatisticalFacetBuilder global(boolean global)
Overrides:
global in class AbstractFacetBuilder

facetFilter

public StatisticalFacetBuilder facetFilter(XContentFilterBuilder filter)
Overrides:
facetFilter in class AbstractFacetBuilder

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params)
                throws java.io.IOException
Throws:
java.io.IOException