Skip to content

Commit

Permalink
[DOCS] Add retrieving runtime fields to introduction (#76084) (#76101)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Locke <[email protected]>
  • Loading branch information
elasticsearchmachine and Adam Locke authored Aug 4, 2021
1 parent 1a9ad3a commit d57744e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/mapping/runtime.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ sees runtime fields no differently. You can define runtime fields in the
<<runtime-search-request,search request>>. Your choice, which is part of the
inherent flexibility of runtime fields.

Use the <<search-fields,`fields`>> parameter on the `_search` API to
<<runtime-retrieving-fields,retrieve the values of runtime fields>>. Runtime
fields won't display in `_source`, but the `fields` API works for all fields,
even those that were not sent as part of the original `_source`.

Runtime fields are useful when working with log data
(see <<runtime-examples,examples>>), especially when you're unsure about the
data structure. Your search speed decreases, but your index size is much
Expand Down Expand Up @@ -632,6 +637,7 @@ which still returns in the response:

[[runtime-retrieving-fields]]
=== Retrieve a runtime field

Use the <<search-fields,`fields`>> parameter on the `_search` API to retrieve
the values of runtime fields. Runtime fields won't display in `_source`, but
the `fields` API works for all fields, even those that were not sent as part of
Expand Down

0 comments on commit d57744e

Please sign in to comment.