- Plugins and Integrations: other versions:
- Introduction to plugins
- Plugin management
- API extension plugins
- Analysis plugins
- ICU analysis plugin
- Japanese (kuromoji) analysis plugin
kuromoji
analyzerkuromoji_iteration_mark
character filterkuromoji_tokenizer
kuromoji_baseform
token filterkuromoji_part_of_speech
token filterkuromoji_readingform
token filterkuromoji_stemmer
token filterja_stop
token filterkuromoji_number
token filterhiragana_uppercase
token filterkatakana_uppercase
token filterkuromoji_completion
token filter
- Korean (nori) analysis plugin
- Phonetic analysis plugin
- Smart Chinese analysis plugin
- Stempel Polish analysis plugin
- Ukrainian analysis plugin
- Discovery plugins
- Mapper plugins
- Snapshot/restore repository plugins
- Store plugins
- Integrations
- Creating an Elasticsearch plugin
Using the _size field
editUsing the _size
field
editIn order to enable the _size
field, set the mapping as follows:
PUT my-index-000001 { "mappings": { "_size": { "enabled": true } } }
The value of the _size
field is accessible in queries, aggregations, scripts,
and when sorting. It can be retrieved using the fields parameter:
# Example documents PUT my-index-000001/_doc/1 { "text": "This is a document" } PUT my-index-000001/_doc/2 { "text": "This is another document" } GET my-index-000001/_search { "query": { "range": { "_size": { "gt": 10 } } }, "aggs": { "sizes": { "terms": { "field": "_size", "size": 10 } } }, "sort": [ { "_size": { "order": "desc" } } ], "fields": ["_size"], "script_fields": { "size": { "script": "doc['_size']" } } }
Querying on the |
|
Aggregating on the |
|
Sorting on the |
|
Use the |
|
Uses a
script field
to return the |
Using _size
in Kibana
To use the _size
field in Kibana, update the metaFields
setting and add
_size
to the list of meta fields. metaFields
can be configured in Kibana
from the Advanced Settings page in Management.
Was this helpful?
Thank you for your feedback.