Click or drag to resize
IndexKeysDefinitionBuilder<TDocument>.GeoHaystack Method (FieldDefinition<TDocument>, FieldDefinition<TDocument>)
Creates a geo haystack index key definition.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public IndexKeysDefinition<TDocument> GeoHaystack(
	FieldDefinition<TDocument> field,
	FieldDefinition<TDocument> additionalFieldName = null
)

Parameters

field
Type: MongoDB.Driver.FieldDefinition<TDocument>
The field.
additionalFieldName (Optional)
Type: MongoDB.Driver.FieldDefinition<TDocument>
Name of the additional field.

Return Value

Type: IndexKeysDefinition<TDocument>
A geo haystack index key definition.
See Also