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

A geo distance builder allowing to create a facet of distances from a specific location including the number of hits within each distance range, and aggregated data (like totals of either the distance or custom value fields).
상속: AbstractFacetBuilder
파일 보기 프로젝트 열기: stephenpope/Rubber

공개 메소드들

메소드 설명
AddRange ( double from, double to ) : GeoDistanceFacetBuilder

Adds a range entry with explicit from and to.

AddUnboundedFrom ( double to ) : GeoDistanceFacetBuilder

Adds a range entry with explicit to and unbounded from.

AddUnboundedTo ( double from ) : GeoDistanceFacetBuilder

Adds a range entry with explicit from and unbounded to.

FacetFilter ( IFilterBuilder filter ) : GeoDistanceFacetBuilder

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

Field ( string fieldName ) : GeoDistanceFacetBuilder

The geo point field that will be used to extract the document location(s).

GeoDistance ( GeoDistance geoDistance ) : GeoDistanceFacetBuilder

The geo distance type used to compute the distance.

GeoDistanceFacetBuilder ( string name ) : System

Constructs a new geo distance with the provided facet name.

Geohash ( string geohash ) : GeoDistanceFacetBuilder

The geohash of the geo point to create the range distance facets from.

Global ( bool global ) : GeoDistanceFacetBuilder

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

Lang ( string lang ) : GeoDistanceFacetBuilder

The language of the {@link #valueScript(string)} script.

Lat ( double lat ) : GeoDistanceFacetBuilder

The latitude to create the range distance facets from.

Lon ( double lon ) : GeoDistanceFacetBuilder

The longitude to create the range distance facets from.

Nested ( string nested ) : GeoDistanceFacetBuilder

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.

Point ( double lat, double lon ) : GeoDistanceFacetBuilder

The point to create the range distance facets from.

Scope ( string scope ) : GeoDistanceFacetBuilder

Marks the facet to run in a specific scope.

ScriptParam ( string name, object value ) : GeoDistanceFacetBuilder

Parameters for {@link #valueScript(string)} to improve performance when executing the same script with different parameters.

ToJsonObject ( ) : object
Unit ( DistanceUnit unit ) : GeoDistanceFacetBuilder

The distance unit to use. Defaults to {@link org.elasticsearch.common.unit.DistanceUnit#KILOMETERS}

ValueField ( string valueFieldName ) : GeoDistanceFacetBuilder

A custom value field (numeric) that will be used to provide aggregated data for each facet (for example, total).

ValueScript ( string valueScript ) : GeoDistanceFacetBuilder

A custom value script (result is numeric) that will be used to provide aggregated data for each facet (for example, total).

메소드 상세

AddRange() 공개 메소드

Adds a range entry with explicit from and to.
public AddRange ( double from, double to ) : GeoDistanceFacetBuilder
from double The from distance limit
to double The to distance limit
리턴 GeoDistanceFacetBuilder

AddUnboundedFrom() 공개 메소드

Adds a range entry with explicit to and unbounded from.
public AddUnboundedFrom ( double to ) : GeoDistanceFacetBuilder
to double The to distance limit, from is unbounded.
리턴 GeoDistanceFacetBuilder

AddUnboundedTo() 공개 메소드

Adds a range entry with explicit from and unbounded to.
public AddUnboundedTo ( double from ) : GeoDistanceFacetBuilder
from double The from distance limit, to is unbounded.
리턴 GeoDistanceFacetBuilder

FacetFilter() 공개 메소드

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : GeoDistanceFacetBuilder
filter IFilterBuilder
리턴 GeoDistanceFacetBuilder

Field() 공개 메소드

The geo point field that will be used to extract the document location(s).
public Field ( string fieldName ) : GeoDistanceFacetBuilder
fieldName string
리턴 GeoDistanceFacetBuilder

GeoDistance() 공개 메소드

The geo distance type used to compute the distance.
public GeoDistance ( GeoDistance geoDistance ) : GeoDistanceFacetBuilder
geoDistance GeoDistance
리턴 GeoDistanceFacetBuilder

GeoDistanceFacetBuilder() 공개 메소드

Constructs a new geo distance with the provided facet name.
public GeoDistanceFacetBuilder ( string name ) : System
name string
리턴 System

Geohash() 공개 메소드

The geohash of the geo point to create the range distance facets from.
public Geohash ( string geohash ) : GeoDistanceFacetBuilder
geohash string
리턴 GeoDistanceFacetBuilder

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 ) : GeoDistanceFacetBuilder
global bool
리턴 GeoDistanceFacetBuilder

Lang() 공개 메소드

The language of the {@link #valueScript(string)} script.
public Lang ( string lang ) : GeoDistanceFacetBuilder
lang string
리턴 GeoDistanceFacetBuilder

Lat() 공개 메소드

The latitude to create the range distance facets from.
public Lat ( double lat ) : GeoDistanceFacetBuilder
lat double
리턴 GeoDistanceFacetBuilder

Lon() 공개 메소드

The longitude to create the range distance facets from.
public Lon ( double lon ) : GeoDistanceFacetBuilder
lon double
리턴 GeoDistanceFacetBuilder

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 ) : GeoDistanceFacetBuilder
nested string
리턴 GeoDistanceFacetBuilder

Point() 공개 메소드

The point to create the range distance facets from.
public Point ( double lat, double lon ) : GeoDistanceFacetBuilder
lat double Latitude
lon double Longitude
리턴 GeoDistanceFacetBuilder

Scope() 공개 메소드

Marks the facet to run in a specific scope.
public Scope ( string scope ) : GeoDistanceFacetBuilder
scope string
리턴 GeoDistanceFacetBuilder

ScriptParam() 공개 메소드

Parameters for {@link #valueScript(string)} to improve performance when executing the same script with different parameters.
public ScriptParam ( string name, object value ) : GeoDistanceFacetBuilder
name string
value object
리턴 GeoDistanceFacetBuilder

ToJsonObject() 공개 메소드

public ToJsonObject ( ) : object
리턴 object

Unit() 공개 메소드

The distance unit to use. Defaults to {@link org.elasticsearch.common.unit.DistanceUnit#KILOMETERS}
public Unit ( DistanceUnit unit ) : GeoDistanceFacetBuilder
unit DistanceUnit
리턴 GeoDistanceFacetBuilder

ValueField() 공개 메소드

A custom value field (numeric) that will be used to provide aggregated data for each facet (for example, total).
public ValueField ( string valueFieldName ) : GeoDistanceFacetBuilder
valueFieldName string
리턴 GeoDistanceFacetBuilder

ValueScript() 공개 메소드

A custom value script (result is numeric) that will be used to provide aggregated data for each facet (for example, total).
public ValueScript ( string valueScript ) : GeoDistanceFacetBuilder
valueScript string
리턴 GeoDistanceFacetBuilder