Skip to content

Commit f2fbaba

Browse files
[DOCS] Warn about potential overhead of named queries (#91512) (#91548)
1 parent fb10f12 commit f2fbaba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/query-dsl/bool-query.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,9 @@ GET /_search
169169
}
170170
}
171171
----
172+
173+
NOTE: This functionality reruns each named query on every hit in a search
174+
response. Typically, this adds a small overhead to a request. However, using
175+
computationally expensive named queries on a large number of hits may add
176+
significant overhead. For example, named queries in combination with a
177+
`top_hits` aggregation on many buckets may lead to longer response times.

0 commit comments

Comments
 (0)