OpenSearch/docs/java-api/admin
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
..
cluster docs: Replaces indexed script java api docs with stored script api docs 2018-01-10 18:03:14 +01:00
indices Fix put mappings java API documentation (#31955) 2018-07-17 09:09:03 +02:00
index.asciidoc Add documentation for Java API create index and put mapping 2015-12-30 17:51:16 +01:00