elasticsearch/docs/reference/mapping
Nik Everett db4911fa9f
Convert date_nanos example script to runtime field (backport of #71351) (#71594)
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 `date_nanos` 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

Co-authored-by: Adam Locke <adam.locke@elastic.co>
2021-04-12 18:12:42 -04:00
..
dynamic Allow specify dynamic templates in bulk request (#71518) 2021-04-10 10:14:11 -04:00
fields New queryable "_tier" metadata field (#69288) (#71123) 2021-04-07 15:44:32 +01:00
params [DOCS] Fix double spaces (#71082) (#71120) 2021-03-31 11:43:34 -04:00
types Convert date_nanos example script to runtime field (backport of #71351) (#71594) 2021-04-12 18:12:42 -04:00
dynamic-mapping.asciidoc [DOCS] Clean up index template xrefs (#67264) (#67272) 2021-01-11 12:58:00 -05:00
explicit-mapping.asciidoc [DOCS] Replace put with create or update in API names (#70330) (#70421) 2021-03-15 17:16:13 -04:00
fields.asciidoc Support fetching _tier field value (#71379) 2021-04-08 12:57:48 -07:00
mapping-settings-limit.asciidoc [DOCS] [7.x] Add docs for runtime fields (#62653) (#66140) 2020-12-09 19:32:15 -05:00
params.asciidoc Clarify field data cache behavior in docs (#64375) 2020-11-20 13:56:02 -08:00
removal_of_types.asciidoc [DOCS] Fix double spaces (#71082) (#71120) 2021-03-31 11:43:34 -04:00
runtime.asciidoc [DOCS] [7.x] Adding page for indexing runtime fields #71366 (#71431) 2021-04-07 13:32:33 -04:00
types.asciidoc [DOCS] Fix double spaces (#71082) (#71120) 2021-03-31 11:43:34 -04:00