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.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
NAME |
EMPTY_ARRAY
EMPTY_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
RootMapper
Mapper.parse(ParseContext)
on the RootObjectMapper
.preParse
in interface RootMapper
IOException
public void postParse(ParseContext context) throws IOException
RootMapper
Mapper.parse(ParseContext)
on the RootObjectMapper
.postParse
in interface RootMapper
IOException
public boolean includeInObject()
RootMapper
ObjectMapper
.
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 RootMapper
public org.apache.lucene.analysis.Analyzer setAnalyzer(HighlighterContext context)
public void parse(ParseContext context) throws IOException
parse
in interface Mapper
IOException
public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge
in interface Mapper
MergeMappingException
public void traverse(FieldMapperListener fieldMapperListener)
public void traverse(ObjectMapperListener objectMapperListener)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.