Method GeoHaystack
GeoHaystack(FieldDefinition<TDocument>, FieldDefinition<TDocument>)
Creates a geo haystack index key definition.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public IndexKeysDefinition<TDocument> GeoHaystack(FieldDefinition<TDocument> field, FieldDefinition<TDocument> additionalFieldName = null)
Parameters
field
FieldDefinition<TDocument>The field.
additionalFieldName
FieldDefinition<TDocument>Name of the additional field.
Returns
- IndexKeysDefinition<TDocument>
A geo haystack index key definition.
GeoHaystack(Expression<Func<TDocument, object>>, Expression<Func<TDocument, object>>)
Creates a geo haystack index key definition.
[Obsolete("GeoHaystack indexes were deprecated in server version 4.4.")]
public IndexKeysDefinition<TDocument> GeoHaystack(Expression<Func<TDocument, object>> field, Expression<Func<TDocument, object>> additionalFieldName = null)
Parameters
field
Expression<Func<TDocument, object>>The field.
additionalFieldName
Expression<Func<TDocument, object>>Name of the additional field.
Returns
- IndexKeysDefinition<TDocument>
A geo haystack index key definition.