Module org.elasticsearch.server
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.FieldMapper.DimensionBuilder
org.elasticsearch.index.mapper.KeywordFieldMapper.Builder
- All Implemented Interfaces:
ToXContent,ToXContentFragment
- Enclosing class:
KeywordFieldMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper.Builder
copyTo, hasScript, multiFieldsBuilder, sourceKeepModeFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(String name, IndexAnalyzers indexAnalyzers, ScriptCompiler scriptCompiler, IndexSettings indexSettings, boolean forceDocValuesSkipper, boolean isWithinMultiField) Builder(String name, IndexSettings indexSettings) Builder(String name, IndexSettings indexSettings, boolean isWithinMultiField) Builder(String name, MappingParserContext mappingParserContext) -
Method Summary
Modifier and TypeMethodDescriptionbuild(MapperBuilderContext context) Returns a newly built mapper.static KeywordFieldMapper.BuilderbuildWithDocValuesSkipper(String name, IndexSettings indexSettings, boolean isWithinMultiField) dimension(boolean dimension) docValues(boolean hasDocValues) protected FieldMapper.Parameter<?>[]booleanbooleanignoreAbove(int ignoreAbove) indexed(boolean indexed) booleanbooleanisStored()stored(boolean stored) Methods inherited from class org.elasticsearch.index.mapper.FieldMapper.DimensionBuilder
inheritDimensionParameterFromParentObjectMethods inherited from class org.elasticsearch.index.mapper.FieldMapper.Builder
addMultiField, addScriptValidation, builderParams, handleUnknownParamOnLegacyIndex, init, merge, parse, toXContent, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper.Builder
leafNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Builder
-
Builder
public Builder(String name, IndexAnalyzers indexAnalyzers, ScriptCompiler scriptCompiler, IndexSettings indexSettings, boolean forceDocValuesSkipper, boolean isWithinMultiField) -
Builder
-
Builder
-
-
Method Details
-
buildWithDocValuesSkipper
public static KeywordFieldMapper.Builder buildWithDocValuesSkipper(String name, IndexSettings indexSettings, boolean isWithinMultiField) -
ignoreAbove
-
hasNormalizer
public boolean hasNormalizer() -
isNormalizerSkipStoreOriginalValue
public boolean isNormalizerSkipStoreOriginalValue() -
docValues
-
hasDocValues
public boolean hasDocValues() -
similarity
-
dimension
-
indexed
-
stored
-
isStored
public boolean isStored() -
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
-