C# Класс Rubber.DSL.Facet.DateHistogramFacetBuilder

A facet builder of date histogram facets.
Наследование: AbstractFacetBuilder
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Comparator() публичный Метод

public Comparator ( DateHistogramComparatorType comparatorType ) : DateHistogramFacetBuilder
comparatorType DateHistogramComparatorType
Результат DateHistogramFacetBuilder

DateHistogramFacetBuilder() публичный Метод

Constructs a new date histogram facet with the provided facet logical name.
public DateHistogramFacetBuilder ( string name ) : System
name string
Результат System

FacetFilter() публичный Метод

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : DateHistogramFacetBuilder
filter IFilterBuilder
Результат DateHistogramFacetBuilder

Field() публичный Метод

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
Результат DateHistogramFacetBuilder

Global() публичный Метод

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
Результат DateHistogramFacetBuilder

Interval() публичный Метод

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
Результат DateHistogramFacetBuilder

KeyField() публичный Метод

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
Результат DateHistogramFacetBuilder

Lang() публичный Метод

The language of the value script.
public Lang ( string lang ) : DateHistogramFacetBuilder
lang string
Результат DateHistogramFacetBuilder

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.
public Nested ( string nested ) : DateHistogramFacetBuilder
nested string
Результат DateHistogramFacetBuilder

Param() публичный Метод

public Param ( string name, object value ) : DateHistogramFacetBuilder
name string
value object
Результат DateHistogramFacetBuilder

Scope() публичный Метод

Marks the facet to run in a specific scope.
public Scope ( string scope ) : DateHistogramFacetBuilder
scope string
Результат DateHistogramFacetBuilder

ToJsonObject() публичный Метод

public ToJsonObject ( ) : object
Результат object

ValueField() публичный Метод

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
Результат DateHistogramFacetBuilder

ValueScript() публичный Метод

public ValueScript ( string valueScript ) : DateHistogramFacetBuilder
valueScript string
Результат DateHistogramFacetBuilder

Zone() публичный Метод

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
Результат DateHistogramFacetBuilder