Method GeoHaystackSearchAs
GeoHaystackSearchAs<TDocument>(double, double, IMongoGeoHaystackSearchOptions)
Runs a geoHaystack search command on this collection.
[Obsolete("Use the overload of GeoHaystackSearchAs that has a GeoHaystackSearchArgs parameter instead.")]
public virtual GeoHaystackSearchResult<TDocument> GeoHaystackSearchAs<TDocument>(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<TDocument>
Type Parameters
TDocument
The type of the found documents.
GeoHaystackSearchAs<TDocument>(GeoHaystackSearchArgs)
Runs a geoHaystack search command on this collection.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public virtual GeoHaystackSearchResult<TDocument> GeoHaystackSearchAs<TDocument>(GeoHaystackSearchArgs args)
Parameters
args
GeoHaystackSearchArgsThe args.
Returns
- GeoHaystackSearchResult<TDocument>
Type Parameters
TDocument
The type of the found documents.
GeoHaystackSearchAs(Type, double, double, IMongoGeoHaystackSearchOptions)
Runs a geoHaystack search command on this collection.
[Obsolete("Use the overload of GeoHaystackSearchAs that has a GeoHaystackSearchArgs parameter instead.")]
public virtual GeoHaystackSearchResult GeoHaystackSearchAs(Type documentType, double x, double y, IMongoGeoHaystackSearchOptions options)
Parameters
documentType
TypeThe type to deserialize the documents as.
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
GeoHaystackSearchAs(Type, GeoHaystackSearchArgs)
Runs a geoHaystack search command on this collection.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public virtual GeoHaystackSearchResult GeoHaystackSearchAs(Type documentType, GeoHaystackSearchArgs args)
Parameters
documentType
TypeThe type to deserialize the documents as.
args
GeoHaystackSearchArgsThe args.