瀏覽代碼

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.
Dai Sugimori 1 月之前
父節點
當前提交
18037bb05c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/elasticsearch/mapping-reference/semantic-text.md

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

@@ -349,7 +349,7 @@ fragments when the field is not of type semantic_text, you can explicitly
 enforce the `semantic` highlighter in the query:
 
 ```console
-PUT test-index
+POST test-index/_search
 {
     "query": {
         "match": {