Package org.elasticsearch.index.mapper
Class KeywordFieldMapper.Builder
java.lang.Object
org.elasticsearch.index.mapper.Mapper.Builder
org.elasticsearch.index.mapper.FieldMapper.Builder
org.elasticsearch.index.mapper.KeywordFieldMapper.Builder
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- KeywordFieldMapper
public static class KeywordFieldMapper.Builder extends FieldMapper.Builder
-
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, multiFieldsBuilderFields inherited from class org.elasticsearch.index.mapper.Mapper.Builder
nameFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)Builder(java.lang.String name, IndexAnalyzers indexAnalyzers, ScriptCompiler scriptCompiler) -
Method Summary
Modifier and Type Method Description KeywordFieldMapperbuild(ContentPath contentPath)Returns a newly built mapper.KeywordFieldMapper.BuilderdocValues(boolean hasDocValues)protected java.util.List<FieldMapper.Parameter<?>>getParameters()KeywordFieldMapper.BuilderignoreAbove(int ignoreAbove)Methods inherited from class org.elasticsearch.index.mapper.FieldMapper.Builder
addScriptValidation, buildFullName, init, parentPath, parse, toXContentMethods inherited from class org.elasticsearch.index.mapper.Mapper.Builder
nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Builder
public Builder(java.lang.String name, IndexAnalyzers indexAnalyzers, ScriptCompiler scriptCompiler) -
Builder
public Builder(java.lang.String name)
-
-
Method Details
-
ignoreAbove
-
docValues
-
getParameters
- Specified by:
getParametersin classFieldMapper.Builder- Returns:
- the list of parameters defined for this mapper
-
build
Description copied from class:Mapper.BuilderReturns a newly built mapper.- Specified by:
buildin classFieldMapper.Builder
-