Skip to content

Commit 7eefaf7

Browse files
authored
[DOCS] Remove performance warning for script fields (#69309) (#69356)
1 parent 6938d77 commit 7eefaf7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/reference/how-to/search-speed.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ include::../mapping/types/numeric.asciidoc[tag=map-ids-as-keyword]
165165
[discrete]
166166
=== Avoid scripts
167167

168-
If possible, avoid using <<modules-scripting,scripts>> or
169-
<<script-fields,scripted fields>> in searches. See
168+
If possible, avoid using <<modules-scripting,script>>-based sorting, scripts in
169+
aggregations, and the <<query-dsl-script-score-query,`script_score`>> query. See
170170
<<scripts-and-search-speed>>.
171171

172172

docs/reference/search/search-your-data/retrieve-selected-fields.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ such as keywords and dates.
4343
get the values for specific stored fields (fields that use the
4444
<<mapping-store,`store`>> mapping option).
4545

46-
If needed, you can use the <<script-fields,`script_field`>> parameter to
47-
transform field values in the response using a script. However, scripts can’t
48-
make use of {es}'s index structures or related optimizations. This can sometimes
49-
result in slower search speeds.
46+
You can also use the <<script-fields,`script_field`>> parameter to transform
47+
field values in the response using a script.
5048

5149
You can find more detailed information on each of these methods in the
5250
following sections:

0 commit comments

Comments
 (0)