From f73cec9720f991cc3c0f2e710abd0ec91f106845 Mon Sep 17 00:00:00 2001 From: Charlotte Hoblik Date: Mon, 20 Oct 2025 15:10:18 +0200 Subject: [PATCH 1/4] change example to match query --- .../semantic-search/semantic-search-semantic-text.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/solutions/search/semantic-search/semantic-search-semantic-text.md b/solutions/search/semantic-search/semantic-search-semantic-text.md index a5254793dc..c1b8787a06 100644 --- a/solutions/search/semantic-search/semantic-search-semantic-text.md +++ b/solutions/search/semantic-search/semantic-search-semantic-text.md @@ -110,22 +110,22 @@ After the data has been indexed with the embeddings, you can query the data usin :::{tab-item} Query DSL :sync: dsl -The Query DSL approach uses the `semantic` query type with the `semantic_text` field: +The Query DSL approach uses the [`match` query](elasticsearch://reference/query-languages/query-dsl/query-dsl-match-query) type with the `semantic_text` field: ```esql GET semantic-embeddings/_search { "query": { - "semantic": { - "field": "content", <1> - "query": "What causes muscle soreness after running?" <2> + "match": { + "message": { + "query": "What causes muscle soreness after running?" <1> + } } } } ``` -1. The `semantic_text` field on which you want to perform the search. -2. The query text. +1. The query text. ::: :::{tab-item} ES|QL From 95467d88bc2631914ede9662f361b4ccfdd9f4d9 Mon Sep 17 00:00:00 2001 From: Charlotte Hoblik Date: Mon, 20 Oct 2025 15:28:42 +0200 Subject: [PATCH 2/4] fix link --- .../search/semantic-search/semantic-search-semantic-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/search/semantic-search/semantic-search-semantic-text.md b/solutions/search/semantic-search/semantic-search-semantic-text.md index c1b8787a06..f24bfe8726 100644 --- a/solutions/search/semantic-search/semantic-search-semantic-text.md +++ b/solutions/search/semantic-search/semantic-search-semantic-text.md @@ -110,7 +110,7 @@ After the data has been indexed with the embeddings, you can query the data usin :::{tab-item} Query DSL :sync: dsl -The Query DSL approach uses the [`match` query](elasticsearch://reference/query-languages/query-dsl/query-dsl-match-query) type with the `semantic_text` field: +The Query DSL approach uses the [`match` query](elasticsearch://reference/query-languages/query-dsl/query-dsl-match-query.md) type with the `semantic_text` field: ```esql GET semantic-embeddings/_search From 600ed1a09a5d448a31efd441b1b87dc8e98176ca Mon Sep 17 00:00:00 2001 From: Charlotte Hoblik <116336412+charlotte-hoblik@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:16:01 +0200 Subject: [PATCH 3/4] Update semantic-search-semantic-text.md --- .../search/semantic-search/semantic-search-semantic-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/search/semantic-search/semantic-search-semantic-text.md b/solutions/search/semantic-search/semantic-search-semantic-text.md index f24bfe8726..1cb66fa92f 100644 --- a/solutions/search/semantic-search/semantic-search-semantic-text.md +++ b/solutions/search/semantic-search/semantic-search-semantic-text.md @@ -117,7 +117,7 @@ GET semantic-embeddings/_search { "query": { "match": { - "message": { + "content": { "query": "What causes muscle soreness after running?" <1> } } From c671109f1f8e0c0141d71262ece9fb31d9ffb57c Mon Sep 17 00:00:00 2001 From: Charlotte Hoblik Date: Tue, 21 Oct 2025 14:30:27 +0200 Subject: [PATCH 4/4] re-add footnote --- .../semantic-search/semantic-search-semantic-text.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/solutions/search/semantic-search/semantic-search-semantic-text.md b/solutions/search/semantic-search/semantic-search-semantic-text.md index 1cb66fa92f..4a33c19b26 100644 --- a/solutions/search/semantic-search/semantic-search-semantic-text.md +++ b/solutions/search/semantic-search/semantic-search-semantic-text.md @@ -117,15 +117,16 @@ GET semantic-embeddings/_search { "query": { "match": { - "content": { - "query": "What causes muscle soreness after running?" <1> + "content": { <1> + "query": "What causes muscle soreness after running?" <2> } } } } ``` -1. The query text. +1. The `semantic_text` field on which you want to perform the search. +2. The query text. ::: :::{tab-item} ES|QL