Click or drag to resize
MongoCollection.GeoHaystackSearchAs Method (Type, GeoHaystackSearchArgs)
Runs a geoHaystack search command on this collection.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.2.0
Syntax
public virtual GeoHaystackSearchResult GeoHaystackSearchAs(
	Type documentType,
	GeoHaystackSearchArgs args
)

Parameters

documentType
Type: System.Type
The type to deserialize the documents as.
args
Type: MongoDB.Driver.GeoHaystackSearchArgs
The args.

Return Value

Type: GeoHaystackSearchResult
A GeoNearResult<TDocument>.
See Also