elasticsearch/docs/reference/mapping
Nik Everett e158bc10b1
Convert boolean field example to runtime fields (#71341)
Runtime fields are much more flexible than `script_fields` because you
can filter and aggregate on them so we hope folks use them! This
converts the example of using a `boolean` field in a script to a runtime
field so folks get used to seeing them and hopefully using them.

While I was editing this I took the opportunity to replace the script
with a real-ish example. Scripts that just load the field value are nice
and short but I hope no one uses them in real life because they just add
overhead when compared to accessing the field directly. So I made the
script do *something*.

Relates to #69291
2021-04-06 14:42:44 -04:00
..
dynamic [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
fields New queryable "_tier" metadata field (#69288) 2021-03-31 15:37:37 +01:00
params [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
types Convert boolean field example to runtime fields (#71341) 2021-04-06 14:42:44 -04:00
dynamic-mapping.asciidoc [DOCS] Clean up index template xrefs (#67264) 2021-01-11 12:38:09 -05:00
explicit-mapping.asciidoc [DOCS] Replace put with create or update in API names (#70330) 2021-03-15 14:49:44 -04:00
fields.asciidoc New queryable "_tier" metadata field (#69288) 2021-03-31 15:37:37 +01:00
mapping-settings-limit.asciidoc [DOCS] Add docs for runtime fields (#62653) 2020-12-09 17:54:58 -05:00
params.asciidoc Clarify field data cache behavior in docs (#64375) 2020-11-20 13:53:23 -08:00
removal_of_types.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
runtime.asciidoc [DOCS] Expand examples for runtime fields in a search query (#71237) 2021-04-02 15:00:54 -04:00
types.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00