Class GeoPointPropertyDescriptor<T>
Data type mapping to map a property as a geopoint
Inheritance
GeoPointPropertyDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class GeoPointPropertyDescriptor<T> : DocValuesPropertyDescriptorBase<GeoPointPropertyDescriptor<T>, IGeoPointProperty, T>, IDescriptor, IGeoPointProperty, IDocValuesProperty, ICoreProperty, IProperty, IFieldMapping where T : class
Type Parameters
Constructors
|
Edit this page
View Source
GeoPointPropertyDescriptor()
Declaration
public GeoPointPropertyDescriptor()
Methods
|
Edit this page
View Source
If true, malformed geo-points are ignored. If false (default), malformed
geo-points throw an exception and reject the whole document.
Declaration
public GeoPointPropertyDescriptor<T> IgnoreMalformed(bool? ignoreMalformed = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreMalformed |
|
Returns
|
Edit this page
View Source
IgnoreZValue(bool?)
If true (default) three dimension points will be accepted (stored in source) but only
latitude and longitude values will be indexed; the third dimension is ignored. If false, geo-points
containing any more than latitude and longitude (two dimensions) values
throw an exception and reject the whole document.
Declaration
public GeoPointPropertyDescriptor<T> IgnoreZValue(bool? ignoreZValue = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreZValue |
|
Returns
|
Edit this page
View Source
NullValue(GeoLocation)
Accepts a geo_point value which is substituted for any explicit null values.
Defaults to null, which means the field is treated as missing.
Declaration
public GeoPointPropertyDescriptor<T> NullValue(GeoLocation defaultValue)
Parameters
Returns
Implements
Extension Methods