Skip to content

Commit f73cec9

Browse files
change example to match query
1 parent d84d7f1 commit f73cec9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,22 @@ 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) 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+
"message": {
121+
"query": "What causes muscle soreness after running?" <1>
122+
}
122123
}
123124
}
124125
}
125126
```
126127

127-
1. The `semantic_text` field on which you want to perform the search.
128-
2. The query text.
128+
1. The query text.
129129
:::
130130

131131
:::{tab-item} ES|QL

0 commit comments

Comments
 (0)