Method GeoHaystack
GeoHaystack<TDocument>(IndexKeysDefinition<TDocument>, FieldDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing index keys definition with a geo haystack index key definition.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public static IndexKeysDefinition<TDocument> GeoHaystack<TDocument>(this IndexKeysDefinition<TDocument> keys, FieldDefinition<TDocument> field, FieldDefinition<TDocument> additionalFieldName = null)
Parameters
keys
IndexKeysDefinition<TDocument>The keys.
field
FieldDefinition<TDocument>The field.
additionalFieldName
FieldDefinition<TDocument>Name of the additional field.
Returns
- IndexKeysDefinition<TDocument>
A combined index keys definition.
Type Parameters
TDocument
The type of the document.
GeoHaystack<TDocument>(IndexKeysDefinition<TDocument>, Expression<Func<TDocument, object>>, Expression<Func<TDocument, object>>)
Combines an existing index keys definition with a geo haystack index key definition.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public static IndexKeysDefinition<TDocument> GeoHaystack<TDocument>(this IndexKeysDefinition<TDocument> keys, Expression<Func<TDocument, object>> field, Expression<Func<TDocument, object>> additionalFieldName = null)
Parameters
keys
IndexKeysDefinition<TDocument>The keys.
field
Expression<Func<TDocument, object>>The field.
additionalFieldName
Expression<Func<TDocument, object>>Name of the additional field.
Returns
- IndexKeysDefinition<TDocument>
A combined index keys definition.
Type Parameters
TDocument
The type of the document.