From 4d43d3f8815c5592f54fcaf999e071904f772d87 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Mon, 22 Feb 2021 10:20:33 -0500 Subject: [PATCH] [DOCS] Remove performance warning for script fields (#69309) (#69354) --- docs/reference/how-to/search-speed.asciidoc | 4 ++-- .../search-your-data/retrieve-selected-fields.asciidoc | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/reference/how-to/search-speed.asciidoc b/docs/reference/how-to/search-speed.asciidoc index e51c7fa2b7821..154c8361cb89b 100644 --- a/docs/reference/how-to/search-speed.asciidoc +++ b/docs/reference/how-to/search-speed.asciidoc @@ -165,8 +165,8 @@ include::../mapping/types/numeric.asciidoc[tag=map-ids-as-keyword] [discrete] === Avoid scripts -If possible, avoid using <> or -<> in searches. See +If possible, avoid using <>-based sorting, scripts in +aggregations, and the <> query. See <>. diff --git a/docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc b/docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc index db5c9b7239dc8..fef4b19607236 100644 --- a/docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc +++ b/docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc @@ -43,10 +43,8 @@ such as keywords and dates. get the values for specific stored fields (fields that use the <> mapping option). -If needed, you can use the <> parameter to -transform field values in the response using a script. However, scripts can’t -make use of {es}'s index structures or related optimizations. This can sometimes -result in slower search speeds. +You can also use the <> parameter to transform +field values in the response using a script. You can find more detailed information on each of these methods in the following sections: