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

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

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

Метод Описание
AddRange ( double from, double to ) : RangeFacetBuilder

Adds a range entry with explicit from and to.

AddRange ( string from, string to ) : RangeFacetBuilder
AddUnboundedFrom ( double to ) : RangeFacetBuilder

Adds a range entry with explicit to and unbounded from.

AddUnboundedFrom ( string to ) : RangeFacetBuilder
AddUnboundedTo ( double from ) : RangeFacetBuilder

Adds a range entry with explicit from and unbounded to.

AddUnboundedTo ( string from ) : RangeFacetBuilder
FacetFilter ( IFilterBuilder filter ) : RangeFacetBuilder

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

Field ( string field ) : RangeFacetBuilder

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

Global ( bool global ) : RangeFacetBuilder

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

KeyField ( string keyField ) : RangeFacetBuilder

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

Nested ( string nested ) : RangeFacetBuilder

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.

RangeFacetBuilder ( string name ) : System.Collections.Generic

Constructs a new range facet with the provided facet logical name.

Scope ( string scope ) : RangeFacetBuilder

Marks the facet to run in a specific scope.

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

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

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

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

Adds a range entry with explicit from and to.
public AddRange ( double from, double to ) : RangeFacetBuilder
from double The from range limit
to double The to range limit
Результат RangeFacetBuilder

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

public AddRange ( string from, string to ) : RangeFacetBuilder
from string
to string
Результат RangeFacetBuilder

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

Adds a range entry with explicit to and unbounded from.
public AddUnboundedFrom ( double to ) : RangeFacetBuilder
to double The to range limit, from is unbounded.
Результат RangeFacetBuilder

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

public AddUnboundedFrom ( string to ) : RangeFacetBuilder
to string
Результат RangeFacetBuilder

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

Adds a range entry with explicit from and unbounded to.
public AddUnboundedTo ( double from ) : RangeFacetBuilder
from double the from range limit, to is unbounded.
Результат RangeFacetBuilder

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

public AddUnboundedTo ( string from ) : RangeFacetBuilder
from string
Результат RangeFacetBuilder

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

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

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

The field name to perform the range facet. Translates to perform the range facet using the provided field as both the {@link #keyField(String)} and {@link #valueField(String)}.
public Field ( string field ) : RangeFacetBuilder
field string
Результат RangeFacetBuilder

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 ) : RangeFacetBuilder
global bool
Результат RangeFacetBuilder

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

The field name to use in order to control where the hit will "fall into" within the range 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 ) : RangeFacetBuilder
keyField string
Результат RangeFacetBuilder

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 ) : RangeFacetBuilder
nested string
Результат RangeFacetBuilder

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

Constructs a new range facet with the provided facet logical name.
public RangeFacetBuilder ( string name ) : System.Collections.Generic
name string The logical name of the facet
Результат System.Collections.Generic

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

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

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 ) : RangeFacetBuilder
valueField string
Результат RangeFacetBuilder