浏览代码

[DOCS] Re-add network traffic para to `term` query (#83047)

Re-adds a paragraph about minimizing network traffic for a terms lookup.

This paragraph was erroneously removed as part of https://github.com/elastic/elasticsearch/pull/42889.
James Rodewig 3 年之前
父节点
当前提交
b552d5cb0e
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/reference/query-dsl/terms-query.asciidoc

+ 6 - 0
docs/reference/query-dsl/terms-query.asciidoc

@@ -87,10 +87,16 @@ By default, {es} limits the `terms` query to a maximum of 65,536
 terms. This includes terms fetched using terms lookup. You can change
 this limit using the <<index-max-terms-count, `index.max_terms_count`>> setting.
 
+To reduce network traffic, a terms lookup will fetch the document's values from
+a shard on a local data node if possible. If the your terms data is not large,
+consider using an index with a single primary shard that's fully replicated
+across all applicable data nodes to minimize network traffic.
+
 To perform a terms lookup, use the following parameters.
 
 [[query-dsl-terms-lookup-params]]
 ====== Terms lookup parameters
+
 `index`::
 (Required, string) Name of the index from which to fetch field values.