Method GeoHaystackSearch
GeoHaystackSearch(double, double, IMongoGeoHaystackSearchOptions)
Runs a geoHaystack search command on this collection.
[Obsolete("Use the overload of GeoHaystackSearch that has a GeoHaystackSearchArgs parameter instead.")]
public virtual GeoHaystackSearchResult<TDefaultDocument> GeoHaystackSearch(double x, double y, IMongoGeoHaystackSearchOptions options)
Parameters
x
doubleThe x coordinate of the starting location.
y
doubleThe y coordinate of the starting location.
options
IMongoGeoHaystackSearchOptionsThe options for the geoHaystack search (null if none).
Returns
- GeoHaystackSearchResult<TDefaultDocument>
GeoHaystackSearch(GeoHaystackSearchArgs)
Runs a geoHaystack search command on this collection.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public virtual GeoHaystackSearchResult<TDefaultDocument> GeoHaystackSearch(GeoHaystackSearchArgs args)
Parameters
args
GeoHaystackSearchArgsThe args.
Returns
- GeoHaystackSearchResult<TDefaultDocument>