PutMappingDescriptor<T>
public class PutMappingDescriptor<T> : RequestDescriptorBase<PutMappingDescriptor<T>, PutMappingRequestParameters, IPutMappingRequest>, IPutMappingRequest, ITypeMapping, IRequest<PutMappingRequestParameters>, IRequest
descriptor for IndicesPutMapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html
/{index}/{type}/_mapping. Will infer the index from the generic type
public PutMappingDescriptor()
/{index}/{type}/_mapping. Will infer the index and type from the generic type
A shortcut into calling Index(Indices.All)
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
protected PutMappingDescriptor<T> Assign<TValue>(TValue value, Action<ITypeMapping, TValue> assigner)
Convenience method to map as much as it can based on ElasticType attributes set on the type.
This method also automatically sets up mappings for primitive values types (e.g. int, long, double, DateTime...)
Class types default to object and Enums to int
Later calls can override whatever is set by this call.
Convenience method to map as much as it can based on ElasticType attributes set on the type.
This method also automatically sets up mappings for primitive values types (e.g. int, long, double, DateTime...)
Class types default to object and Enums to int
Later calls can override whatever is set by this call.
public PutMappingDescriptor<T> DynamicTemplates(Func<DynamicTemplateContainerDescriptor<T>, IPromise<IDynamicTemplateContainer>> dynamicTemplatesSelector)
Whether to expand wildcard expression to concrete indices that are open, closed or both.
public PutMappingDescriptor<T> FieldNamesField(Func<FieldNamesFieldDescriptor<T>, IFieldNamesField> fieldNamesFieldSelector)
Whether specified concrete indices should be ignored when unavailable (missing or closed)
Whether a type should be expected in the body of the mappings.
A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.
a shortcut into calling Index(typeof(TOther))
public PutMappingDescriptor<T> IndexField(Func<IndexFieldDescriptor, IIndexField> indexFieldSelector)
Specify timeout for connection to master
public PutMappingDescriptor<T> Meta(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> metaSelector)
public PutMappingDescriptor<T> Properties(Func<PropertiesDescriptor<T>, IPromise<IProperties>> propertiesSelector)
public PutMappingDescriptor<T> RoutingField(Func<RoutingFieldDescriptor<T>, IRoutingField> routingFieldSelector)
public PutMappingDescriptor<T> SourceField(Func<SourceFieldDescriptor, ISourceField> sourceFieldSelector)
Explicit operation timeout
The name of the document type
a shortcut into calling Type(typeof(TOther))
Whether to update the mapping for all fields with the same name across all types or not