Skip to content

Commit 8a6c5a7

Browse files
Change semantic query example to match query (#3549)
1 parent b61856d commit 8a6c5a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

solutions/search/semantic-search/semantic-search-semantic-text.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,16 @@ After the data has been indexed with the embeddings, you can query the data usin
110110
:::{tab-item} Query DSL
111111
:sync: dsl
112112

113-
The Query DSL approach uses the `semantic` query type with the `semantic_text` field:
113+
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:
114114

115115
```esql
116116
GET semantic-embeddings/_search
117117
{
118118
"query": {
119-
"semantic": {
120-
"field": "content", <1>
121-
"query": "What causes muscle soreness after running?" <2>
119+
"match": {
120+
"content": { <1>
121+
"query": "What causes muscle soreness after running?" <2>
122+
}
122123
}
123124
}
124125
}

0 commit comments

Comments
 (0)