Class GeoHaystackSearchOptionsBuilder<TDocument>
A builder for the options of the GeoHaystackSearch command.
[Serializable]
[Obsolete("Use GeoHaystackSearchArgs instead.")]
[BsonSerializer(typeof(GeoHaystackSearchOptionsBuilder<>.Serializer))]
public class GeoHaystackSearchOptionsBuilder<TDocument> : BuilderBase, IConvertibleToBsonDocument, IMongoGeoHaystackSearchOptionsType Parameters
- TDocument
- The type of the document. 
- Inheritance
- 
      
      
      GeoHaystackSearchOptionsBuilder<TDocument>
- 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<TMember>(Expression<Func<TDocument, TMember>>, TMember)
- Sets the query on the optional additional field. 
- ToBsonDocument()
- Converts this object to a BsonDocument.