From 78a87eb55a9ab61dace051566c957d99fa1e9373 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Fri, 23 May 2025 16:27:49 +0200 Subject: [PATCH 1/4] FIx match_phrase docs for zero_terms_query --- .../query-dsl/query-dsl-match-query-phrase.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md index 7d90dab993b24..150962de8dc10 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md @@ -35,11 +35,11 @@ GET /_search `zero_terms_query` : (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are: -`none` (Default) -: No documents are returned if the `analyzer` removes all tokens. + - `none` (Default) + : No documents are returned if the `analyzer` removes all tokens. -`all` -: Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query. + - `all` + : Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query. A phrase query matches terms up to a configurable `slop` (which defaults to 0) in any order. Transposed terms have a slop of 2. From b47f36ee92ee2ff3cbc3866f7e91794edc298729 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Fri, 23 May 2025 18:18:02 +0200 Subject: [PATCH 2/4] Update query-dsl-match-query-phrase.md --- .../query-languages/query-dsl/query-dsl-match-query-phrase.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md index 150962de8dc10..64f554fa0cb2d 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md @@ -37,7 +37,6 @@ GET /_search - `none` (Default) : No documents are returned if the `analyzer` removes all tokens. - - `all` : Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query. From 30698b594954805ffbdf40c0d4d8570c1a3c5803 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Fri, 23 May 2025 18:34:41 +0200 Subject: [PATCH 3/4] Update query-dsl-match-query-phrase.md --- .../query-dsl/query-dsl-match-query-phrase.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md index 64f554fa0cb2d..7f96db50f4d34 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md @@ -36,10 +36,9 @@ GET /_search : (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are: - `none` (Default) - : No documents are returned if the `analyzer` removes all tokens. + No documents are returned if the `analyzer` removes all tokens. - `all` - : Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query. - + Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query. A phrase query matches terms up to a configurable `slop` (which defaults to 0) in any order. Transposed terms have a slop of 2. From 95945b54326050b087d52672d78d380d5df7b6d7 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Fri, 23 May 2025 18:41:50 +0200 Subject: [PATCH 4/4] Update docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com> --- .../query-languages/query-dsl/query-dsl-match-query-phrase.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md index 7f96db50f4d34..0681d745aac5b 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md @@ -34,7 +34,6 @@ GET /_search `zero_terms_query` : (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are: - - `none` (Default) No documents are returned if the `analyzer` removes all tokens. - `all`