- Elasticsearch 7.0 Cookbook(Fourth Edition)
- Alberto Paro
- 72字
- 2021-06-24 14:52:06
Adding a field with multiple mappings
Often a field must be processed with several core types or in different ways. For example, a string field must be processed as tokenized for search and not-tokenized for sorting. To do this, we need to define a fields multifield special property.
The fields property is a very powerful feature of mappings because it allows you to use the same field in different ways.