Skip to content

Commit 784d892

Browse files
abdonpijpelinketki
andauthored
Added reference to terms_set query in regular terms query documentation (#91204) (#91466)
* Added reference to terms_set query in regular terms query documentation * Update docs/reference/query-dsl/terms-query.asciidoc Co-authored-by: Abdon Pijpelink <[email protected]> Co-authored-by: Abdon Pijpelink <[email protected]> Co-authored-by: Etki <[email protected]>
1 parent 51fe478 commit 784d892

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/reference/mapping/params/eager-global-ordinals.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ The global ordinal mapping must be built before ordinals can be used during a
4545
search. By default, the mapping is loaded during search on the first time that
4646
global ordinals are needed. This is the right approach if you are optimizing
4747
for indexing speed, but if search performance is a priority, it's recommended
48-
to eagerly load global ordinals eagerly on fields that will be used in
49-
aggregations:
48+
to eagerly load global ordinals on fields that will be used in aggregations:
5049

5150
[source,console]
5251
------------

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
Returns documents that contain one or more *exact* terms in a provided field.
88

99
The `terms` query is the same as the <<query-dsl-term-query, `term` query>>,
10-
except you can search for multiple values.
10+
except you can search for multiple values. A document will match if it contains
11+
at least one of the terms. To search for documents that contain more than one
12+
matching term, use the <<query-dsl-terms-set-query, `terms_set` query>>.
1113

1214
[[terms-query-ex-request]]
1315
==== Example request

0 commit comments

Comments
 (0)