Interface IDateProperty
The date datatype maps a field as a date in OpenSearch.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IDateProperty : IDocValuesProperty, ICoreProperty, IProperty, IFieldMapping
Properties
| Edit this page View SourceBoost
Mapping field-level query time boosting. Accepts a floating point number, defaults to 1.0.
Declaration
[DataMember(Name = "boost")]
double? Boost { get; set; }
Property Value
Type | Description |
---|---|
double? |
Fielddata
Declaration
[DataMember(Name = "fielddata")]
INumericFielddata Fielddata { get; set; }
Property Value
Type | Description |
---|---|
INumericFielddata |
Format
The date format(s) that can be parsed. Defaults to strict_date_optional_time||epoch_millis. DateFormat
Declaration
[DataMember(Name = "format")]
string Format { get; set; }
Property Value
Type | Description |
---|---|
string |
IgnoreMalformed
If true, malformed numbers are ignored. If false (default), malformed numbers throw an exception and reject the whole document.
Declaration
[DataMember(Name = "ignore_malformed")]
bool? IgnoreMalformed { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Index
Should the field be searchable? Accepts true (default) and false.
Declaration
[DataMember(Name = "index")]
bool? Index { get; set; }
Property Value
Type | Description |
---|---|
bool? |
NullValue
Accepts a date value in one of the configured format's as the field which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing.
Declaration
[DataMember(Name = "null_value")]
DateTime? NullValue { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |