elasticsearch/elasticsearch — pull request #4552 by dakrone (2013-12-26 18:30:29+00:00)
Title: Don't accept type wrapper in indexing request

Currently it is possible to index a document as:

```
POST /myindex/mytype/1
{ "foo"...}
```

or as:

```
POST /myindex/mytype/1
{
"mytype": {
"foo"...
}
}
```

This makes indexing non-deterministic and fields can be misinterpreted
as type names.

This changes makes Elasticsearch accept only the first form, ie without
the type wrapper.

Fixes #4484