OpenSearch/docs/java-api/admin/indices
Christoph Büscher 36165265ce
Fix put mappings java API documentation (#31955)
The current docs of the put-mapping Java API is currently broken. It its current
form, it creates an index and uses the whole mapping definition given as a JSON
string as the type name. Since we didn't check the index created in the
IndicesDocumentationIT so far this went unnoticed.

This change adds test to catch this error to the documentation test, changes the
documentation so it works correctly now and adds an input validation to
PutMappingRequest#buildFromSimplifiedDef() which was used internally to reject
calls where no mapping definition is given.

Closes #31906
2018-07-17 09:09:03 +02:00
..
create-index.asciidoc Add documentation for Java API create index and put mapping 2015-12-30 17:51:16 +01:00
get-settings.asciidoc Add documentation for Java API update/get settings API 2015-12-31 14:26:30 +01:00
index.asciidoc Add documentation for Java API refresh API 2015-12-31 15:11:58 +01:00
put-mapping.asciidoc Fix put mappings java API documentation (#31955) 2018-07-17 09:09:03 +02:00
refresh.asciidoc Add documentation for Java API refresh API 2015-12-31 15:11:58 +01:00
update-settings.asciidoc Add documentation for Java API update/get settings API 2015-12-31 14:26:30 +01:00