Class ClrTypeMapping
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ClrTypeMapping : IClrTypeMapping
Constructors
| Edit this page View SourceClrTypeMapping(Type)
Initializes a new instance of ClrTypeMapping
Declaration
public ClrTypeMapping(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Properties
| Edit this page View SourceClrType
The CLR type the mapping relates to
Declaration
public Type ClrType { get; }
Property Value
Type | Description |
---|---|
Type |
DisableIdInference
Disables Id inference for the given ClrType. By default, the _id value for a document is inferred from a property named Id, or from the property named by IdPropertyName, if set.
Declaration
public bool DisableIdInference { get; set; }
Property Value
Type | Description |
---|---|
bool |
IdPropertyName
The property for the given ClrType to resolve ids from.
Declaration
public string IdPropertyName { get; set; }
Property Value
Type | Description |
---|---|
string |
IndexName
The default OpenSearch index name for the given ClrType
Declaration
public string IndexName { get; set; }
Property Value
Type | Description |
---|---|
string |
RelationName
The relation name for the given ClrType to resolve to.
Declaration
public string RelationName { get; set; }
Property Value
Type | Description |
---|---|
string |