Class PropertyDescriptorBase<TDescriptor, TInterface, T>
A mapping for a property type to a document field in OpenSearch
Inheritance
PropertyDescriptorBase<TDescriptor, TInterface, T>
Assembly: OpenSearch.Client.dll
Syntax
public abstract class PropertyDescriptorBase<TDescriptor, TInterface, T> : DescriptorBase<TDescriptor, TInterface>, IDescriptor, IProperty, IFieldMapping where TDescriptor : PropertyDescriptorBase<TDescriptor, TInterface, T>, TInterface where TInterface : class, IProperty where T : class
Type Parameters
Name |
Description |
TDescriptor |
|
TInterface |
|
T |
|
Constructors
|
Edit this page
View Source
PropertyDescriptorBase(FieldType)
Declaration
protected PropertyDescriptorBase(FieldType type)
Parameters
Properties
|
Edit this page
View Source
DebugDisplay
Declaration
protected string DebugDisplay { get; }
Property Value
|
Edit this page
View Source
TypeOverride
Declaration
protected string TypeOverride { set; }
Property Value
Methods
|
Edit this page
View Source
Local property metadata that will not be stored in OpenSearch with the mappings
Declaration
public TDescriptor LocalMetadata(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> selector)
Parameters
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Metadata attached to the field. This metadata is stored in but opaque to OpenSearch. It is
only useful for multiple applications that work on the same indices to share
meta information about fields such as units.
Field metadata enforces at most 5 entries, that keys have a length that
is less than or equal to 20, and that values are strings whose length is less
than or equal to 50.
Declaration
public TDescriptor Meta(Func<FluentDictionary<string, string>, FluentDictionary<string, string>> selector)
Parameters
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Name(PropertyName)
Declaration
public TDescriptor Name(PropertyName name)
Parameters
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Name<TValue>(Expression<Func<T, TValue>>)
Declaration
public TDescriptor Name<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type |
Description |
TDescriptor |
|
Type Parameters
Implements
Extension Methods