public class SourceFieldMapper extends MetadataFieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
SourceFieldMapper.Builder |
static class |
SourceFieldMapper.Defaults |
static class |
SourceFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
NAME |
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFields
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
protected String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
boolean |
enabled() |
String[] |
excludes() |
String[] |
includes() |
boolean |
isComplete() |
Mapper |
parse(ParseContext context)
Parse using the provided
ParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified. |
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields . |
void |
postParse(ParseContext context)
Called after
FieldMapper.parse(ParseContext) on the RootObjectMapper . |
void |
preParse(ParseContext context)
Called before
FieldMapper.parse(ParseContext) on the RootObjectMapper . |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
merge
clone, copyTo, customBoost, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, isGenerated, iterator, name, termVectorOptionsToString, updateFieldType
simpleName
public static final String NAME
public static final String CONTENT_TYPE
public boolean enabled()
public String[] excludes()
public String[] includes()
public boolean isComplete()
public void preParse(ParseContext context) throws IOException
MetadataFieldMapper
FieldMapper.parse(ParseContext)
on the RootObjectMapper
.preParse
in class MetadataFieldMapper
IOException
public void postParse(ParseContext context) throws IOException
MetadataFieldMapper
FieldMapper.parse(ParseContext)
on the RootObjectMapper
.postParse
in class MetadataFieldMapper
IOException
public Mapper parse(ParseContext context) throws IOException
FieldMapper
ParseContext
and return a mapping
update if dynamic mappings modified the mappings, or null
if
mappings were not modified.parse
in class FieldMapper
IOException
protected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
IOException
protected String contentType()
contentType
in class FieldMapper
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
toXContent
in class FieldMapper
IOException
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class FieldMapper
updateAllTypes
- TODOCopyright © 2009–2017. All rights reserved.