org.elasticsearch.index.mapper.multifield
Class MultiFieldMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.multifield.MultiFieldMapper
All Implemented Interfaces:
ToXContent, AllFieldMapper.IncludeInAll, Mapper

public class MultiFieldMapper
extends Object
implements Mapper, AllFieldMapper.IncludeInAll


Nested Class Summary
static class MultiFieldMapper.Builder
           
static class MultiFieldMapper.Defaults
           
static class MultiFieldMapper.TypeParser
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static String CONTENT_TYPE
           
 
Fields inherited from interface org.elasticsearch.index.mapper.Mapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
MultiFieldMapper(String name, ContentPath.Type pathType, Map<String,Mapper> mappers, Mapper defaultMapper)
           
MultiFieldMapper(String name, ContentPath.Type pathType, Mapper defaultMapper)
           
 
Method Summary
 void close()
           
 Mapper defaultMapper()
           
 void includeInAll(Boolean includeInAll)
           
 void includeInAllIfNotSet(Boolean includeInAll)
           
 com.google.common.collect.ImmutableMap<String,Mapper> mappers()
           
 void merge(Mapper mergeWith, MergeContext mergeContext)
           
 String name()
           
 void parse(ParseContext context)
           
 ContentPath.Type pathType()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void traverse(FieldMapperListener fieldMapperListener)
           
 void traverse(ObjectMapperListener objectMapperListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

MultiFieldMapper

public MultiFieldMapper(String name,
                        ContentPath.Type pathType,
                        Mapper defaultMapper)

MultiFieldMapper

public MultiFieldMapper(String name,
                        ContentPath.Type pathType,
                        Map<String,Mapper> mappers,
                        Mapper defaultMapper)
Method Detail

name

public String name()
Specified by:
name in interface Mapper

includeInAll

public void includeInAll(Boolean includeInAll)
Specified by:
includeInAll in interface AllFieldMapper.IncludeInAll

includeInAllIfNotSet

public void includeInAllIfNotSet(Boolean includeInAll)
Specified by:
includeInAllIfNotSet in interface AllFieldMapper.IncludeInAll

pathType

public ContentPath.Type pathType()

defaultMapper

public Mapper defaultMapper()

mappers

public com.google.common.collect.ImmutableMap<String,Mapper> mappers()

parse

public void parse(ParseContext context)
           throws IOException
Specified by:
parse in interface Mapper
Throws:
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 IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.