C# Class Rubber.DSL.Facet.DateHistogramFacetBuilder

A facet builder of date histogram facets.
Inheritance: AbstractFacetBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
Comparator ( DateHistogramComparatorType comparatorType ) : DateHistogramFacetBuilder
DateHistogramFacetBuilder ( string name ) : System

Constructs a new date histogram facet with the provided facet logical name.

FacetFilter ( IFilterBuilder filter ) : DateHistogramFacetBuilder

An additional filter used to further filter down the set of documents the facet will run on.

Field ( string field ) : DateHistogramFacetBuilder

The field name to perform the histogram facet. Translates to perform the histogram facet using the provided field as both the {@link #keyField(string)} and {@link #valueField(string)}.

Global ( bool global ) : DateHistogramFacetBuilder

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.

Interval ( string interval ) : DateHistogramFacetBuilder

The interval used to control the bucket "size" where each key value of a hit will fall into. Check the docs for all available values.

KeyField ( string keyField ) : DateHistogramFacetBuilder

The field name to use in order to control where the hit will "fall into" within the histogram entries. Essentially, using the key field numeric value, the hit will be "rounded" into the relevant bucket controlled by the interval.

Lang ( string lang ) : DateHistogramFacetBuilder

The language of the value script.

Nested ( string nested ) : DateHistogramFacetBuilder

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.

Param ( string name, object value ) : DateHistogramFacetBuilder
Scope ( string scope ) : DateHistogramFacetBuilder

Marks the facet to run in a specific scope.

ToJsonObject ( ) : object
ValueField ( string valueField ) : DateHistogramFacetBuilder

The field name to use as the value of the hit to compute data based on values within the interval (for example, total).

ValueScript ( string valueScript ) : DateHistogramFacetBuilder
Zone ( string zone ) : DateHistogramFacetBuilder

Sets the time zone to use when bucketing the values. Can either be in the form of "-10:00" or one of the values listed here: http://joda-time.sourceforge.net/timezones.html.

Method Details

Comparator() public méthode

public Comparator ( DateHistogramComparatorType comparatorType ) : DateHistogramFacetBuilder
comparatorType DateHistogramComparatorType
Résultat DateHistogramFacetBuilder

DateHistogramFacetBuilder() public méthode

Constructs a new date histogram facet with the provided facet logical name.
public DateHistogramFacetBuilder ( string name ) : System
name string
Résultat System

FacetFilter() public méthode

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : DateHistogramFacetBuilder
filter IFilterBuilder
Résultat DateHistogramFacetBuilder

Field() public méthode

The field name to perform the histogram facet. Translates to perform the histogram facet using the provided field as both the {@link #keyField(string)} and {@link #valueField(string)}.
public Field ( string field ) : DateHistogramFacetBuilder
field string
Résultat DateHistogramFacetBuilder

Global() public méthode

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.
public Global ( bool global ) : DateHistogramFacetBuilder
global bool
Résultat DateHistogramFacetBuilder

Interval() public méthode

The interval used to control the bucket "size" where each key value of a hit will fall into. Check the docs for all available values.
public Interval ( string interval ) : DateHistogramFacetBuilder
interval string
Résultat DateHistogramFacetBuilder

KeyField() public méthode

The field name to use in order to control where the hit will "fall into" within the histogram entries. Essentially, using the key field numeric value, the hit will be "rounded" into the relevant bucket controlled by the interval.
public KeyField ( string keyField ) : DateHistogramFacetBuilder
keyField string
Résultat DateHistogramFacetBuilder

Lang() public méthode

The language of the value script.
public Lang ( string lang ) : DateHistogramFacetBuilder
lang string
Résultat DateHistogramFacetBuilder

Nested() public méthode

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.
public Nested ( string nested ) : DateHistogramFacetBuilder
nested string
Résultat DateHistogramFacetBuilder

Param() public méthode

public Param ( string name, object value ) : DateHistogramFacetBuilder
name string
value object
Résultat DateHistogramFacetBuilder

Scope() public méthode

Marks the facet to run in a specific scope.
public Scope ( string scope ) : DateHistogramFacetBuilder
scope string
Résultat DateHistogramFacetBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ValueField() public méthode

The field name to use as the value of the hit to compute data based on values within the interval (for example, total).
public ValueField ( string valueField ) : DateHistogramFacetBuilder
valueField string
Résultat DateHistogramFacetBuilder

ValueScript() public méthode

public ValueScript ( string valueScript ) : DateHistogramFacetBuilder
valueScript string
Résultat DateHistogramFacetBuilder

Zone() public méthode

Sets the time zone to use when bucketing the values. Can either be in the form of "-10:00" or one of the values listed here: http://joda-time.sourceforge.net/timezones.html.
public Zone ( string zone ) : DateHistogramFacetBuilder
zone string
Résultat DateHistogramFacetBuilder