Class DynamicTemplateDescriptor<T>
Inheritance
DynamicTemplateDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class DynamicTemplateDescriptor<T> : DescriptorBase<DynamicTemplateDescriptor<T>, IDynamicTemplate>, IDescriptor, IDynamicTemplate where T : class
Type Parameters
Methods
|
Edit this page
View Source
Mapping(Func<SingleMappingSelector<T>, IProperty>)
The mapping to apply to matching fields
Declaration
public DynamicTemplateDescriptor<T> Mapping(Func<SingleMappingSelector<T>, IProperty> mappingSelector)
Parameters
Returns
|
Edit this page
View Source
Match(string)
A pattern to match on the field name
Declaration
public DynamicTemplateDescriptor<T> Match(string match)
Parameters
Type |
Name |
Description |
string |
match |
|
Returns
|
Edit this page
View Source
MatchMappingType(string)
Matches on the datatype detected by dynamic field mapping,
in other words, the datatype that OpenSearch thinks the field should have.
Only the following datatypes can be automatically detected: boolean, date, double,
long, object, string. It also accepts * to match all datatypes.
Declaration
public DynamicTemplateDescriptor<T> MatchMappingType(string matchMappingType)
Parameters
Type |
Name |
Description |
string |
matchMappingType |
|
Returns
|
Edit this page
View Source
MatchPattern(MatchType?)
Adjusts the behavior of Match such that it supports full
Java regular expression matching on the field name instead of simple wildcards
Declaration
public DynamicTemplateDescriptor<T> MatchPattern(MatchType? matchPattern)
Parameters
Type |
Name |
Description |
MatchType? |
matchPattern |
|
Returns
|
Edit this page
View Source
PathMatch(string)
A pattern to match on the field name, which may be the full dotted path
to the field name
Declaration
public DynamicTemplateDescriptor<T> PathMatch(string pathMatch)
Parameters
Type |
Name |
Description |
string |
pathMatch |
|
Returns
|
Edit this page
View Source
PathUnmatch(string)
A pattern to exclude fields matched by PathMatch
Declaration
public DynamicTemplateDescriptor<T> PathUnmatch(string pathUnmatch)
Parameters
Type |
Name |
Description |
string |
pathUnmatch |
|
Returns
|
Edit this page
View Source
Unmatch(string)
A pattern to exclude fields matched by Match
Declaration
public DynamicTemplateDescriptor<T> Unmatch(string unMatch)
Parameters
Type |
Name |
Description |
string |
unMatch |
|
Returns
Implements
Extension Methods