C# Class Rubber.DSL.Facet.RangeFacetBuilder

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

Méthodes publiques

Méthode Description
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).

Method Details

AddRange() public méthode

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
Résultat RangeFacetBuilder

AddRange() public méthode

public AddRange ( string from, string to ) : RangeFacetBuilder
from string
to string
Résultat RangeFacetBuilder

AddUnboundedFrom() public méthode

Adds a range entry with explicit to and unbounded from.
public AddUnboundedFrom ( double to ) : RangeFacetBuilder
to double The to range limit, from is unbounded.
Résultat RangeFacetBuilder

AddUnboundedFrom() public méthode

public AddUnboundedFrom ( string to ) : RangeFacetBuilder
to string
Résultat RangeFacetBuilder

AddUnboundedTo() public méthode

Adds a range entry with explicit from and unbounded to.
public AddUnboundedTo ( double from ) : RangeFacetBuilder
from double the from range limit, to is unbounded.
Résultat RangeFacetBuilder

AddUnboundedTo() public méthode

public AddUnboundedTo ( string from ) : RangeFacetBuilder
from string
Résultat RangeFacetBuilder

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 ) : RangeFacetBuilder
filter IFilterBuilder
Résultat RangeFacetBuilder

Field() public méthode

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
Résultat RangeFacetBuilder

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 ) : RangeFacetBuilder
global bool
Résultat RangeFacetBuilder

KeyField() public méthode

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
Résultat RangeFacetBuilder

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 ) : RangeFacetBuilder
nested string
Résultat RangeFacetBuilder

RangeFacetBuilder() public méthode

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
Résultat System.Collections.Generic

Scope() public méthode

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

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 ) : RangeFacetBuilder
valueField string
Résultat RangeFacetBuilder