Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Re-add network traffic reduction tip to terms lookup docs #83047

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/reference/query-dsl/terms-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down