elasticsearch/docs/reference/mapping
Nik Everett e4451bda05
Convert date_nanos example script to runtime field (#71351)
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 17:22:02 -04:00
..
dynamic Allow specify dynamic templates in bulk request (#69948) 2021-04-08 12:44:36 -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 date_nanos example script to runtime field (#71351) 2021-04-12 17:22:02 -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 Support fetching _tier field value (#71379) 2021-04-08 11:41:52 -07: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] Adding page for indexing runtime fields (#71366) 2021-04-07 13:07:39 -04:00
types.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00