Skip to content

Commit 04173a6

Browse files
authored
[DOCS] Re-add network traffic para to term query (#83047) (#83069)
Re-adds a paragraph about minimizing network traffic for a terms lookup. This paragraph was erroneously removed as part of #42889. (cherry picked from commit b552d5c)
1 parent 90cafa7 commit 04173a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ By default, {es} limits the `terms` query to a maximum of 65,536
8787
terms. This includes terms fetched using terms lookup. You can change
8888
this limit using the <<index-max-terms-count, `index.max_terms_count`>> setting.
8989

90+
To reduce network traffic, a terms lookup will fetch the document's values from
91+
a shard on a local data node if possible. If the your terms data is not large,
92+
consider using an index with a single primary shard that's fully replicated
93+
across all applicable data nodes to minimize network traffic.
94+
9095
To perform a terms lookup, use the following parameters.
9196

9297
[[query-dsl-terms-lookup-params]]
9398
====== Terms lookup parameters
99+
94100
`index`::
95101
(Required, string) Name of the index from which to fetch field values.
96102

0 commit comments

Comments
 (0)