C# Class Rubber.DSL.Sort.GeoDistanceSortBuilder

A geo distance based sorting on a geo point like field.
Inheritance: ISortBuilder
Mostrar archivo Open project: stephenpope/Rubber

Public Methods

Method Description
GeoDistance ( GeoDistance geoDistance ) : GeoDistanceSortBuilder

The geo distance type used to compute the distance.

GeoDistanceSortBuilder ( string fieldName ) : Newtonsoft.Json.Linq

Constructs a new distance based sort on a geo point like field.

Geohash ( string geohash ) : GeoDistanceSortBuilder

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

Missing ( object missing ) : ISortBuilder

Not relevant.

Order ( SortOrder order ) : ISortBuilder

The order of sorting. Defaults to ASC.

Point ( double lat, double lon ) : GeoDistanceSortBuilder

The point to create the range distance facets from.

ToJsonObject ( ) : object
ToString ( ) : string
Unit ( DistanceUnit unit ) : GeoDistanceSortBuilder

The distance unit to use. Defaults to KILOMETERS.

Method Details

GeoDistance() public method

The geo distance type used to compute the distance.
public GeoDistance ( GeoDistance geoDistance ) : GeoDistanceSortBuilder
geoDistance GeoDistance
return GeoDistanceSortBuilder

GeoDistanceSortBuilder() public method

Constructs a new distance based sort on a geo point like field.
public GeoDistanceSortBuilder ( string fieldName ) : Newtonsoft.Json.Linq
fieldName string The geo point like field name.
return Newtonsoft.Json.Linq

Geohash() public method

The geohash of the geo point to create the range distance facets from.
public Geohash ( string geohash ) : GeoDistanceSortBuilder
geohash string
return GeoDistanceSortBuilder

Missing() public method

Not relevant.
public Missing ( object missing ) : ISortBuilder
missing object
return ISortBuilder

Order() public method

The order of sorting. Defaults to ASC.
public Order ( SortOrder order ) : ISortBuilder
order SortOrder
return ISortBuilder

Point() public method

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

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string

Unit() public method

The distance unit to use. Defaults to KILOMETERS.
public Unit ( DistanceUnit unit ) : GeoDistanceSortBuilder
unit DistanceUnit
return GeoDistanceSortBuilder