org.elasticsearch.index.mapper.multifield
Class MultiFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.multifield.MultiFieldMapper
- All Implemented Interfaces:
- ToXContent, AllFieldMapper.IncludeInAll, Mapper
public class MultiFieldMapper
- extends java.lang.Object
- implements Mapper, AllFieldMapper.IncludeInAll
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
MultiFieldMapper
public MultiFieldMapper(java.lang.String name,
ContentPath.Type pathType,
Mapper defaultMapper)
MultiFieldMapper
public MultiFieldMapper(java.lang.String name,
ContentPath.Type pathType,
java.util.Map<java.lang.String,Mapper> mappers,
Mapper defaultMapper)
name
public java.lang.String name()
- Specified by:
name
in interface Mapper
includeInAll
public void includeInAll(java.lang.Boolean includeInAll)
- Specified by:
includeInAll
in interface AllFieldMapper.IncludeInAll
includeInAllIfNotSet
public void includeInAllIfNotSet(java.lang.Boolean includeInAll)
- Specified by:
includeInAllIfNotSet
in interface AllFieldMapper.IncludeInAll
pathType
public ContentPath.Type pathType()
defaultMapper
public Mapper defaultMapper()
mappers
public org.elasticsearch.common.collect.ImmutableMap<java.lang.String,Mapper> mappers()
parse
public void parse(ParseContext context)
throws java.io.IOException
- Specified by:
parse
in interface Mapper
- Throws:
java.io.IOException
merge
public void merge(Mapper mergeWith,
MergeContext mergeContext)
throws MergeMappingException
- Specified by:
merge
in interface Mapper
- Throws:
MergeMappingException
close
public void close()
- Specified by:
close
in interface Mapper
traverse
public void traverse(FieldMapperListener fieldMapperListener)
- Specified by:
traverse
in interface Mapper
traverse
public void traverse(ObjectMapperListener objectMapperListener)
- Specified by:
traverse
in interface Mapper
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException