Class GeoHaystackSearchOptions
A builder for the options of the GeoHaystackSearch command.
[Obsolete("Use GeoHaystackSearchArgs instead.")]
public static class GeoHaystackSearchOptions
- Inheritance
-
GeoHaystackSearchOptions
- Inherited Members
Properties
Null
Gets a null value with a type of IMongoGeoHaystackSearchOptions.
public static IMongoGeoHaystackSearchOptions Null { get; }
Property Value
Methods
SetLimit(int)
Sets the maximum number of results to return.
public static GeoHaystackSearchOptionsBuilder SetLimit(int value)
Parameters
value
intThe maximum number of results to return.
Returns
- GeoHaystackSearchOptionsBuilder
The builder (so method calls can be chained).
SetMaxDistance(double)
Sets the max distance.
public static GeoHaystackSearchOptionsBuilder SetMaxDistance(double value)
Parameters
value
doubleThe max distance.
Returns
- GeoHaystackSearchOptionsBuilder
The builder (so method calls can be chained).
SetQuery(string, BsonValue)
Sets the query on the optional additional field.
public static GeoHaystackSearchOptionsBuilder SetQuery(string additionalFieldName, BsonValue value)
Parameters
additionalFieldName
stringThe name of the additional field.
value
BsonValueThe value fo the additional field.
Returns
- GeoHaystackSearchOptionsBuilder
The builder (so method calls can be chained).