Package org.elasticsearch.index.mapper
Class NumberFieldMapper.Builder
java.lang.Object
org.elasticsearch.index.mapper.Mapper.Builder
org.elasticsearch.index.mapper.FieldMapper.Builder
org.elasticsearch.index.mapper.NumberFieldMapper.Builder
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- NumberFieldMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper.Builder
copyTo, multiFieldsBuilder
Fields inherited from class org.elasticsearch.index.mapper.Mapper.Builder
name
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionBuilder(String name, NumberFieldMapper.NumberType type, ScriptCompiler compiler, boolean ignoreMalformedByDefault, boolean coerceByDefault)
Builder(String name, NumberFieldMapper.NumberType type, ScriptCompiler compiler, Settings settings)
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ContentPath contentPath)
Returns a newly built mapper.docValues(boolean hasDocValues)
static NumberFieldMapper.Builder
docValuesOnly(String name, NumberFieldMapper.NumberType type)
protected List<FieldMapper.Parameter<?>>
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper.Builder
addScriptValidation, buildFullName, init, parentPath, parse, toXContent
Methods inherited from class org.elasticsearch.index.mapper.Mapper.Builder
name
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Builder
public Builder(String name, NumberFieldMapper.NumberType type, ScriptCompiler compiler, Settings settings) -
Builder
public Builder(String name, NumberFieldMapper.NumberType type, ScriptCompiler compiler, boolean ignoreMalformedByDefault, boolean coerceByDefault)
-
-
Method Details
-
docValuesOnly
public static NumberFieldMapper.Builder docValuesOnly(String name, NumberFieldMapper.NumberType type) -
docValues
-
getParameters
- Specified by:
getParameters
in classFieldMapper.Builder
- Returns:
- the list of parameters defined for this mapper
-
build
Description copied from class:Mapper.Builder
Returns a newly built mapper.- Specified by:
build
in classFieldMapper.Builder
-