Class GeoHaystackSearchOptionsBuilder
A builder for the options of the GeoHaystackSearch command.
[Serializable]
[Obsolete("Use GeoHaystackSearchArgs instead.")]
[BsonSerializer(typeof(GeoHaystackSearchOptionsBuilder.Serializer))]
public class GeoHaystackSearchOptionsBuilder : BuilderBase, IConvertibleToBsonDocument, IMongoGeoHaystackSearchOptions
- Inheritance
-
GeoHaystackSearchOptionsBuilder
- Implements
- Inherited Members
- Extension Methods
Constructors
- GeoHaystackSearchOptionsBuilder()
Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.
Methods
- SetLimit(int)
Sets the maximum number of results to return.
- SetMaxDistance(double)
Sets the max distance.
- SetQuery(string, BsonValue)
Sets the query on the optional additional field.
- ToBsonDocument()
Returns the result of the builder as a BsonDocument.