Class GeoHaystackSearchArgs
Represents the arguments to the GeoHaystackSearch method.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public class GeoHaystackSearchArgs
- Inheritance
-
GeoHaystackSearchArgs
- Inherited Members
- Extension Methods
Properties
AdditionalFieldName
Gets or sets the name of the additional field.
public string AdditionalFieldName { get; set; }
Property Value
AdditionalFieldValue
Gets or sets the additional field value.
public BsonValue AdditionalFieldValue { get; set; }
Property Value
Limit
Gets or sets the limit.
public int? Limit { get; set; }
Property Value
- int?
MaxDistance
Gets or sets the max distance.
public double? MaxDistance { get; set; }
Property Value
MaxTime
Gets or sets the max time.
public TimeSpan? MaxTime { get; set; }
Property Value
Near
Gets or sets the location near which to search.
public XYPoint Near { get; set; }
Property Value
Methods
SetAdditionalField(string, BsonValue)
Sets the name and value of the additional field.
public GeoHaystackSearchArgs SetAdditionalField(string name, BsonValue value)
Parameters
Returns
- GeoHaystackSearchArgs
The args so calls can be chained.
SetAdditionalField<TDocument, TMember>(Expression<Func<TDocument, TMember>>, TMember)
Sets the name and value of the additional field.
public GeoHaystackSearchArgs SetAdditionalField<TDocument, TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression.
value
TMemberThe value.
Returns
- GeoHaystackSearchArgs
The args so calls can be chained.
Type Parameters
TDocument
The type of the document.
TMember
The type of the member.