public interface MapperPlugin
Plugin
implementations to add custom mappersModifier and Type | Field | Description |
---|---|---|
static java.util.function.Function<java.lang.String,java.util.function.Predicate<java.lang.String>> |
NOOP_FIELD_FILTER |
The default field filter applied, which doesn't filter anything.
|
static java.util.function.Predicate<java.lang.String> |
NOOP_FIELD_PREDICATE |
The default field predicate applied, which doesn't filter anything.
|
Modifier and Type | Method | Description |
---|---|---|
default java.util.function.Function<java.lang.String,java.util.function.Predicate<java.lang.String>> |
getFieldFilter() |
Returns a function that given an index name returns a predicate which fields must match in order to be returned by get mappings,
get index, get field mappings and field capabilities API.
|
default java.util.Map<java.lang.String,Mapper.TypeParser> |
getMappers() |
Returns additional mapper implementations added by this plugin.
|
default java.util.Map<java.lang.String,MetadataFieldMapper.TypeParser> |
getMetadataMappers() |
Returns additional metadata mapper implementations added by this plugin.
|
static final java.util.function.Predicate<java.lang.String> NOOP_FIELD_PREDICATE
static final java.util.function.Function<java.lang.String,java.util.function.Predicate<java.lang.String>> NOOP_FIELD_FILTER
default java.util.Map<java.lang.String,Mapper.TypeParser> getMappers()
The key of the returned Map
is the unique name for the mapper which will be used
as the mapping type
, and the value is a Mapper.TypeParser
to parse the
mapper settings into a Mapper
.
default java.util.Map<java.lang.String,MetadataFieldMapper.TypeParser> getMetadataMappers()
The key of the returned Map
is the unique name for the metadata mapper, which
is used in the mapping json to configure the metadata mapper, and the value is a
MetadataFieldMapper.TypeParser
to parse the mapper settings into a
MetadataFieldMapper
.
default java.util.function.Function<java.lang.String,java.util.function.Predicate<java.lang.String>> getFieldFilter()