C# 클래스 Rubber.DSL.Facet.RangeFacetBuilder

A facet builder of range facets.
상속: AbstractFacetBuilder
파일 보기 프로젝트 열기: stephenpope/Rubber

공개 메소드들

메소드 설명
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