瀏覽代碼

Added reference to terms_set query in regular terms query documentation (#91204)

* Added reference to terms_set query in regular terms query documentation

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

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
Etki 2 年之前
父節點
當前提交
cec0ab20ff

+ 1 - 2
docs/reference/mapping/params/eager-global-ordinals.asciidoc

@@ -45,8 +45,7 @@ The global ordinal mapping must be built before ordinals can be used during a
 search. By default, the mapping is loaded during search on the first time that
 global ordinals are needed. This is the right approach if you are optimizing
 for indexing speed, but if search performance is a priority, it's recommended
-to eagerly load global ordinals eagerly on fields that will be used in
-aggregations:
+to eagerly load global ordinals on fields that will be used in aggregations:
 
 [source,console]
 ------------

+ 3 - 1
docs/reference/query-dsl/terms-query.asciidoc

@@ -7,7 +7,9 @@
 Returns documents that contain one or more *exact* terms in a provided field.
 
 The `terms` query is the same as the <<query-dsl-term-query, `term` query>>,
-except you can search for multiple values.
+except you can search for multiple values. A document will match if it contains
+at least one of the terms. To search for documents that contain more than one
+matching term, use the <<query-dsl-terms-set-query, `terms_set` query>>.
 
 [[terms-query-ex-request]]
 ==== Example request