TypeMappingDescriptor<T>
public class TypeMappingDescriptor<T> : DescriptorBase<TypeMappingDescriptor<T>, ITypeMapping>, ITypeMapping
public TypeMappingDescriptor()
Convenience method to map as much as it can based on ElasticsearchTypeAttribute attributes set on the
type, as well as inferring mappings from the CLR property types.
This method also automatically sets up mappings for known values types (int, long, double, datetime, etc)Class types default to object and Enums to intLater calls can override whatever is set is by this call.
public TypeMappingDescriptor<T> AutoMap(Type documentType, IPropertyVisitor visitor = null, int maxRecursion = 0)
Convenience method to map as much as it can based on ElasticsearchTypeAttribute attributes set on the
type, as well as inferring mappings from the CLR property types.
This particular overload is useful for automapping any children
This method also automatically sets up mappings for known values types (int, long, double, datetime, etc)Class types default to object and Enums to intLater calls can override whatever is set is by this call.
public TypeMappingDescriptor<T> AutoMap<TDocument>(IPropertyVisitor visitor = null, int maxRecursion = 0)
Convenience method to map as much as it can based on ElasticsearchTypeAttribute attributes set on the
type, as well as inferring mappings from the CLR property types.
This particular overload is useful for automapping any children
This method also automatically sets up mappings for known values types (int, long, double, datetime, etc)Class types default to object and Enums to intLater calls can override whatever is set is by this call.
Convenience method to map as much as it can based on ElasticsearchTypeAttribute attributes set on the
type, as well as inferring mappings from the CLR property types.
This overload determines how deep automapping should recurse on a complex CLR type.
public TypeMappingDescriptor<T> DynamicTemplates(Func<DynamicTemplateContainerDescriptor<T>, IPromise<IDynamicTemplateContainer>> dynamicTemplatesSelector)
public TypeMappingDescriptor<T> FieldNamesField(Func<FieldNamesFieldDescriptor<T>, IFieldNamesField> fieldNamesFieldSelector)
public TypeMappingDescriptor<T> IndexField(Func<IndexFieldDescriptor, IIndexField> indexFieldSelector)
public TypeMappingDescriptor<T> Meta(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> metaSelector)
public TypeMappingDescriptor<T> Properties(Func<PropertiesDescriptor<T>, IPromise<IProperties>> propertiesSelector)
public TypeMappingDescriptor<T> Properties<TDocument>(Func<PropertiesDescriptor<TDocument>, IPromise<IProperties>> propertiesSelector)
public TypeMappingDescriptor<T> RoutingField(Func<RoutingFieldDescriptor<T>, IRoutingField> routingFieldSelector)
public TypeMappingDescriptor<T> SourceField(Func<SourceFieldDescriptor, ISourceField> sourceFieldSelector)