Class DateProcessorDescriptor<T>
Inheritance
DateProcessorDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class DateProcessorDescriptor<T> : ProcessorDescriptorBase<DateProcessorDescriptor<T>, IDateProcessor>, IDescriptor, IDateProcessor, IProcessor where T : class
Type Parameters
Properties
|
Edit this page
View Source
Name
Declaration
protected override string Name { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Field(Field)
The field to get the date from.
Declaration
public DateProcessorDescriptor<T> Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field to get the date from.
Declaration
public DateProcessorDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
An array of the expected date formats. Can be a Joda pattern or one of
the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.
Declaration
public DateProcessorDescriptor<T> Formats(IEnumerable<string> matchFormats)
Parameters
Returns
|
Edit this page
View Source
An array of the expected date formats. Can be a Joda pattern or one of
the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.
Declaration
public DateProcessorDescriptor<T> Formats(params string[] matchFormats)
Parameters
Type |
Name |
Description |
string[] |
matchFormats |
|
Returns
|
Edit this page
View Source
Locale(string)
The locale to use when parsing the date, relevant when parsing month names or week days.
Supports template snippets.
Declaration
public DateProcessorDescriptor<T> Locale(string locale)
Parameters
Type |
Name |
Description |
string |
locale |
|
Returns
|
Edit this page
View Source
TargetField(Field)
The field that will hold the parsed date. Defaults to @timestamp
Declaration
public DateProcessorDescriptor<T> TargetField(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
TargetField<TValue>(Expression<Func<T, TValue>>)
The field that will hold the parsed date. Defaults to @timestamp
Declaration
public DateProcessorDescriptor<T> TargetField<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
TimeZone(string)
The timezone to use when parsing the date. Supports template snippets.
Declaration
public DateProcessorDescriptor<T> TimeZone(string timezone)
Parameters
Type |
Name |
Description |
string |
timezone |
|
Returns
Implements
Extension Methods