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
xdoubleThe x coordinate of the starting location.
ydoubleThe y coordinate of the starting location.
optionsIMongoGeoHaystackSearchOptionsThe options for the geoHaystack search (null if none).
Returns
- GeoHaystackSearchResult<TDocument>
Type Parameters
TDocumentThe 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
argsGeoHaystackSearchArgsThe args.
Returns
- GeoHaystackSearchResult<TDocument>
Type Parameters
TDocumentThe 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
documentTypeTypeThe type to deserialize the documents as.
xdoubleThe x coordinate of the starting location.
ydoubleThe y coordinate of the starting location.
optionsIMongoGeoHaystackSearchOptionsThe 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
documentTypeTypeThe type to deserialize the documents as.
argsGeoHaystackSearchArgsThe args.