From 77bd593fa2ec3eccef98401b68dd81ea7e437cba Mon Sep 17 00:00:00 2001 From: Karen Xu Date: Thu, 10 Apr 2025 14:09:18 +0000 Subject: [PATCH 1/3] Fix Terms, Term, MatchAll, MatchNone public docs Signed-off-by: Karen Xu --- _query-dsl/match-all.md | 12 +++++++++++- _query-dsl/term/term.md | 1 + _query-dsl/term/terms.md | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/_query-dsl/match-all.md b/_query-dsl/match-all.md index 274111f041..f0774cf1c1 100644 --- a/_query-dsl/match-all.md +++ b/_query-dsl/match-all.md @@ -28,4 +28,14 @@ GET _search } } ``` -{% include copy-curl.html %} \ No newline at end of file +{% include copy-curl.html %} + + +## Parameters + +Both the matchall and match none queries accepts the following parameters. All parameters are optional. + +Parameter | Data type | Description +:--- | :--- | :--- +`boost` | Floating-point | A floating-point value that specifies the weight of this field toward the relevance score. Values above 1.0 increase the field’s relevance. Values between 0.0 and 1.0 decrease the field’s relevance. Default is 1.0. +`_name` | String | The name of the query for query tagging. Optional. diff --git a/_query-dsl/term/term.md b/_query-dsl/term/term.md index 08c0b76ee3..e833c014fe 100644 --- a/_query-dsl/term/term.md +++ b/_query-dsl/term/term.md @@ -98,4 +98,5 @@ Parameter | Data type | Description :--- | :--- | :--- `value` | String | The term to search for in the field specified in ``. A document is returned in the results only if its field value exactly matches the term, with the correct spacing and capitalization. `boost` | Floating-point | A floating-point value that specifies the weight of this field toward the relevance score. Values above 1.0 increase the field’s relevance. Values between 0.0 and 1.0 decrease the field’s relevance. Default is 1.0. +`_name` | String | The name of the query for query tagging. Optional. `case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping). diff --git a/_query-dsl/term/terms.md b/_query-dsl/term/terms.md index 54628267b4..c9406a6ef8 100644 --- a/_query-dsl/term/terms.md +++ b/_query-dsl/term/terms.md @@ -39,6 +39,7 @@ Parameter | Data type | Description :--- | :--- | :--- `` | String | The field in which to search. A document is returned in the results only if its field value exactly matches at least one term, with the correct spacing and capitalization. `boost` | Floating-point | A floating-point value that specifies the weight of this field toward the relevance score. Values above 1.0 increase the field’s relevance. Values between 0.0 and 1.0 decrease the field’s relevance. Default is 1.0. +`_name` | String | The name of the query for query tagging. Optional. `value_type` | String | Specifies the types of values used for filtering. Valid values are `default` and `bitmap`. If omitted, the value defaults to `default`. ## Terms lookup @@ -250,7 +251,6 @@ Parameter | Data type | Description `id` | String | The document ID of the document from which to fetch field values. Required. `path` | String | The name of the field from which to fetch field values. Specify nested fields using dot path notation. Required. `routing` | String | Custom routing value of the document from which to fetch field values. Optional. Required if a custom routing value was provided when the document was indexed. -`boost` | Floating-point | A floating-point value that specifies the weight of this field toward the relevance score. Values above 1.0 increase the field’s relevance. Values between 0.0 and 1.0 decrease the field’s relevance. Default is 1.0. ## Bitmap filtering **Introduced 2.17** From 6e3ebef202ab007111e30a0575e7a7abb418540b Mon Sep 17 00:00:00 2001 From: Karen Xu Date: Tue, 15 Apr 2025 16:24:19 +0000 Subject: [PATCH 2/3] add store Signed-off-by: Karen Xu --- _query-dsl/term/terms.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_query-dsl/term/terms.md b/_query-dsl/term/terms.md index c9406a6ef8..f9dee038a3 100644 --- a/_query-dsl/term/terms.md +++ b/_query-dsl/term/terms.md @@ -251,6 +251,7 @@ Parameter | Data type | Description `id` | String | The document ID of the document from which to fetch field values. Required. `path` | String | The name of the field from which to fetch field values. Specify nested fields using dot path notation. Required. `routing` | String | Custom routing value of the document from which to fetch field values. Optional. Required if a custom routing value was provided when the document was indexed. +`store` | Bool | Do the lookup on the stored field, instead of _source. Optional. ## Bitmap filtering **Introduced 2.17** From 56f5436feff6205dce10863c47abdf43e30169dc Mon Sep 17 00:00:00 2001 From: Karen X Date: Tue, 15 Apr 2025 13:45:13 -0400 Subject: [PATCH 3/3] Update _query-dsl/term/terms.md Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Karen X --- _query-dsl/term/terms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_query-dsl/term/terms.md b/_query-dsl/term/terms.md index f9dee038a3..116a171a54 100644 --- a/_query-dsl/term/terms.md +++ b/_query-dsl/term/terms.md @@ -251,7 +251,7 @@ Parameter | Data type | Description `id` | String | The document ID of the document from which to fetch field values. Required. `path` | String | The name of the field from which to fetch field values. Specify nested fields using dot path notation. Required. `routing` | String | Custom routing value of the document from which to fetch field values. Optional. Required if a custom routing value was provided when the document was indexed. -`store` | Bool | Do the lookup on the stored field, instead of _source. Optional. +`store` | Boolean | Whether to perform the lookup on the stored field instead of `_source`. Optional. ## Bitmap filtering **Introduced 2.17**