C# Class Rubber.DSL.SortFactory

Mostrar archivo Open project: stephenpope/Rubber

Public Methods

Method Description
FieldSort ( string field ) : FieldSortBuilder

Constructs a new field based sort.

GeoDistanceSort ( string fieldName ) : GeoDistanceSortBuilder

A geo distance based sort.

ScoreSort ( ) : ScoreSortBuilder

Constructs a new score sort.

ScriptSort ( string script, string type ) : ScriptSortBuilder

Constructs a new script based sort.

Method Details

FieldSort() public static method

Constructs a new field based sort.
public static FieldSort ( string field ) : FieldSortBuilder
field string
return Rubber.DSL.Sort.FieldSortBuilder

GeoDistanceSort() public static method

A geo distance based sort.
public static GeoDistanceSort ( string fieldName ) : GeoDistanceSortBuilder
fieldName string The geo point like field name.
return Rubber.DSL.Sort.GeoDistanceSortBuilder

ScoreSort() public static method

Constructs a new score sort.
public static ScoreSort ( ) : ScoreSortBuilder
return Rubber.DSL.Sort.ScoreSortBuilder

ScriptSort() public static method

Constructs a new script based sort.
public static ScriptSort ( string script, string type ) : ScriptSortBuilder
script string The script to use
type string The type, can either be "string" or "number"
return Rubber.DSL.Sort.ScriptSortBuilder