Table of Contents

Method GeoSpatialHaystack

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

GeoSpatialHaystack(string)

Sets the key name to create a geospatial haystack index on.

[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public IndexKeysBuilder GeoSpatialHaystack(string name)

Parameters

name string

The key name.

Returns

IndexKeysBuilder

The builder (so method calls can be chained).

GeoSpatialHaystack(string, string)

Sets the key name and additional field name to create a geospatial haystack index on.

[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public IndexKeysBuilder GeoSpatialHaystack(string name, string additionalName)

Parameters

name string

The key name.

additionalName string

The name of an additional field to index.

Returns

IndexKeysBuilder

The builder (so method calls can be chained).