From 381b4d29bac401328fd91aeb388b18bf750095be Mon Sep 17 00:00:00 2001 From: Alexandre Fonseca Date: Mon, 21 Oct 2019 14:14:57 +0200 Subject: [PATCH] Fix incorrect opType options in IndexRequest docs. IndexRequest can be either `create` or `index` as can be seen in https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/index/IndexRequest.java#L427-L437 Furthermore, the default is `index` as can be seen in https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/index/IndexRequest.java#L93 --- docs/java-rest/high-level/document/index.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java-rest/high-level/document/index.asciidoc b/docs/java-rest/high-level/document/index.asciidoc index 9cdd8d3c557fa..5a201a02a88b5 100644 --- a/docs/java-rest/high-level/document/index.asciidoc +++ b/docs/java-rest/high-level/document/index.asciidoc @@ -85,7 +85,7 @@ include-tagged::{doc-tests-file}[{api}-request-version-type] include-tagged::{doc-tests-file}[{api}-request-op-type] -------------------------------------------------- <1> Operation type provided as an `DocWriteRequest.OpType` value -<2> Operation type provided as a `String`: can be `create` or `update` (default) +<2> Operation type provided as a `String`: can be `create` or `index` (default) ["source","java",subs="attributes,callouts,macros"] --------------------------------------------------