From 0b8465f2c01a8ac17959718f4334c799951d2bfa Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Wed, 31 Oct 2018 12:06:48 -0400 Subject: [PATCH] Update type to "seat" (#35086) otherwise this throws an exception: java.lang.IllegalArgumentException: Rejecting mapping update to [seats] as the final mapping would have more than 1 type: [seat, _doc] May be, later for the types removal, we can modify `seats.json` to have a type `_doc` instead of `seat` --- .../painless-contexts/painless-context-examples.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/painless/painless-contexts/painless-context-examples.asciidoc b/docs/painless/painless-contexts/painless-context-examples.asciidoc index a6a67e22a5b..469f425d1d8 100644 --- a/docs/painless/painless-contexts/painless-context-examples.asciidoc +++ b/docs/painless/painless-contexts/painless-context-examples.asciidoc @@ -46,7 +46,7 @@ the request URL. PUT /seats { "mappings": { - "_doc": { + "seat": { "properties": { "theatre": { "type": "keyword" }, "play": { "type": "text" },