public class AnalyzerMapper extends Object implements Mapper, InternalMapper, RootMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
AnalyzerMapper.Builder |
static class |
AnalyzerMapper.Defaults |
static class |
AnalyzerMapper.TypeParser |
Mapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
NAME |
EMPTY_ARRAYEMPTY_PARAMS| Constructor and Description |
|---|
AnalyzerMapper() |
AnalyzerMapper(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
includeInObject()
Should the mapper be included in the root
ObjectMapper. |
void |
merge(Mapper mergeWith,
MergeContext mergeContext) |
String |
name() |
void |
parse(ParseContext context) |
void |
postParse(ParseContext context)
Called after
Mapper.parse(ParseContext) on the RootObjectMapper. |
void |
preParse(ParseContext context)
Called before
Mapper.parse(ParseContext) on the RootObjectMapper. |
org.apache.lucene.analysis.Analyzer |
setAnalyzer(HighlighterContext context) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
traverse(FieldMapperListener fieldMapperListener) |
void |
traverse(ObjectMapperListener objectMapperListener) |
public static final String NAME
public static final String CONTENT_TYPE
public AnalyzerMapper()
public AnalyzerMapper(String path)
public void preParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.preParse in interface RootMapperIOExceptionpublic void postParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.postParse in interface RootMapperIOExceptionpublic boolean includeInObject()
RootMapperObjectMapper.
If this method returns true, then Mapper.parse(ParseContext) will be
called if the context has a property that matches the name of this
RootMapper. Otherwise Mapper.parse(ParseContext) will not
be called.includeInObject in interface RootMapperpublic org.apache.lucene.analysis.Analyzer setAnalyzer(HighlighterContext context)
public void parse(ParseContext context) throws IOException
parse in interface MapperIOExceptionpublic void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface MapperMergeMappingExceptionpublic void traverse(FieldMapperListener fieldMapperListener)
public void traverse(ObjectMapperListener objectMapperListener)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.