Package org.elasticsearch.index.mapper
Class TextFieldMapper.Builder
java.lang.Object
org.elasticsearch.index.mapper.Mapper.Builder
org.elasticsearch.index.mapper.FieldMapper.Builder
org.elasticsearch.index.mapper.TextFieldMapper.Builder
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- TextFieldMapper
public static class TextFieldMapper.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, 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
Constructors Constructor Description Builder(java.lang.String name, IndexAnalyzers indexAnalyzers)
Builder(java.lang.String name, Version indexCreatedVersion, IndexAnalyzers indexAnalyzers)
-
Method Summary
Modifier and Type Method Description TextFieldMapper.Builder
addMultiField(FieldMapper.Builder builder)
TextFieldMapper
build(ContentPath contentPath)
Returns a newly built mapper.TextFieldMapper.Builder
fielddata(boolean fielddata)
TextFieldMapper.Builder
fielddataFrequencyFilter(double min, double max, int segs)
protected java.util.List<FieldMapper.Parameter<?>>
getParameters()
TextFieldMapper.Builder
index(boolean index)
java.util.Map<java.lang.String,NamedAnalyzer>
indexAnalyzers(java.lang.String name, org.elasticsearch.index.mapper.TextFieldMapper.SubFieldInfo phraseFieldInfo, org.elasticsearch.index.mapper.TextFieldMapper.SubFieldInfo prefixFieldInfo)
TextFieldMapper.Builder
store(boolean store)
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
-
Builder
-
-
Method Details
-
index
-
store
-
fielddata
-
fielddataFrequencyFilter
-
addMultiField
-
getParameters
- Specified by:
getParameters
in classFieldMapper.Builder
- Returns:
- the list of parameters defined for this mapper
-
indexAnalyzers
public java.util.Map<java.lang.String,NamedAnalyzer> indexAnalyzers(java.lang.String name, org.elasticsearch.index.mapper.TextFieldMapper.SubFieldInfo phraseFieldInfo, org.elasticsearch.index.mapper.TextFieldMapper.SubFieldInfo prefixFieldInfo) -
build
Description copied from class:Mapper.Builder
Returns a newly built mapper.- Specified by:
build
in classFieldMapper.Builder
-