Package org.elasticsearch.index.mapper
Class RootObjectMapper.Builder
java.lang.Object
org.elasticsearch.index.mapper.Mapper.Builder
org.elasticsearch.index.mapper.ObjectMapper.Builder
org.elasticsearch.index.mapper.RootObjectMapper.Builder
- Enclosing class:
- RootObjectMapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected Explicit<DateFormatter[]>
protected Explicit<DynamicTemplate[]>
protected Map<String,RuntimeField>
Fields inherited from class org.elasticsearch.index.mapper.ObjectMapper.Builder
dynamic, enabled, indexCreatedVersion, mappersBuilders, nested
Fields inherited from class org.elasticsearch.index.mapper.Mapper.Builder
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd(Mapper.Builder builder)
build(ContentPath contentPath)
Returns a newly built mapper.protected ObjectMapper
createMapper(String name, String fullPath, Explicit<Boolean> enabled, ObjectMapper.Nested nested, ObjectMapper.Dynamic dynamic, Map<String,Mapper> mappers, Version indexCreatedVersion)
dynamicDateTimeFormatter(Collection<DateFormatter> dateTimeFormatters)
dynamicTemplates(Collection<DynamicTemplate> templates)
setRuntime(Map<String,RuntimeField> runtimeFields)
Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper.Builder
dynamic, enabled, nested
Methods inherited from class org.elasticsearch.index.mapper.Mapper.Builder
name
-
Field Details
-
dynamicTemplates
-
dynamicDateTimeFormatters
-
dateDetection
-
numericDetection
-
runtimeFields
-
-
Constructor Details
-
Builder
-
-
Method Details
-
dynamicDateTimeFormatter
public RootObjectMapper.Builder dynamicDateTimeFormatter(Collection<DateFormatter> dateTimeFormatters) -
dynamicTemplates
-
add
- Overrides:
add
in classObjectMapper.Builder
-
setRuntime
-
build
Description copied from class:Mapper.Builder
Returns a newly built mapper.- Overrides:
build
in classObjectMapper.Builder
-
createMapper
protected ObjectMapper createMapper(String name, String fullPath, Explicit<Boolean> enabled, ObjectMapper.Nested nested, ObjectMapper.Dynamic dynamic, Map<String,Mapper> mappers, Version indexCreatedVersion)- Overrides:
createMapper
in classObjectMapper.Builder
-