Skip to content

Commit 18037bb

Browse files
authored
Change PUT to POST _search in semantic-text.md example (#134256)
Current example of a semantic highlighter query uses a PUT index API, but it should be a search API.
1 parent 53ef68f commit 18037bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/elasticsearch/mapping-reference/semantic-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ fragments when the field is not of type semantic_text, you can explicitly
349349
enforce the `semantic` highlighter in the query:
350350

351351
```console
352-
PUT test-index
352+
POST test-index/_search
353353
{
354354
"query": {
355355
"match": {

0 commit comments

Comments
 (0)