mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
2fa09f062e
New plugin for annotated_text field type. Largely a copy of `text` field type but adds ability to include markdown-like syntax in the text. The “AnnotatedText” class parses text+markup and converts into plain text and AnnotationTokens. The annotation token values are injected unchanged alongside the regular text tokens to provide a form of additional indexed overlay useful in positional searches and highlighting. Annotated_text fields do not support fielddata as we want to phase this out. Also includes a new "annotated" highlighter type that retains annotations and merges in search hits as additional annotation markup. Closes #29467
32 lines
903 B
Plaintext
32 lines
903 B
Plaintext
[[mapper]]
|
|
== Mapper Plugins
|
|
|
|
Mapper plugins allow new field datatypes to be added to Elasticsearch.
|
|
|
|
[float]
|
|
=== Core mapper plugins
|
|
|
|
The core mapper plugins are:
|
|
|
|
<<mapper-size>>::
|
|
|
|
The mapper-size plugin provides the `_size` meta field which, when enabled,
|
|
indexes the size in bytes of the original
|
|
{ref}/mapping-source-field.html[`_source`] field.
|
|
|
|
<<mapper-murmur3>>::
|
|
|
|
The mapper-murmur3 plugin allows hashes to be computed at index-time and stored
|
|
in the index for later use with the `cardinality` aggregation.
|
|
|
|
<<mapper-annotated-text>>::
|
|
|
|
The annotated text plugin provides the ability to index text that is a
|
|
combination of free-text and special markup that is typically used to identify
|
|
items of interest such as people or organisations (see NER or Named Entity Recognition
|
|
tools).
|
|
|
|
include::mapper-size.asciidoc[]
|
|
include::mapper-murmur3.asciidoc[]
|
|
include::mapper-annotated-text.asciidoc[]
|