C# Class MongoDB.Driver.Builders.GeoHaystackSearchOptions

A builder for the options of the GeoHaystackSearch command.
ファイルを表示 Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder

Sets the maximum number of results to return.

SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder

Sets the max distance.

SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder

Sets the query on the optional additional field.

Method Details

SetLimit() public static method

Sets the maximum number of results to return.
public static SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder
value int The maximum number of results to return.
return GeoHaystackSearchOptionsBuilder

SetMaxDistance() public static method

Sets the max distance.
public static SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder
value double The max distance.
return GeoHaystackSearchOptionsBuilder

SetQuery() public static method

Sets the query on the optional additional field.
public static SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder
additionalFieldName string The name of the additional field.
value BsonValue The value fo the additional field.
return GeoHaystackSearchOptionsBuilder