Skip to content

[DOCS] Examples contained in README.textile are no longer valid #25978

@olcbean

Description

@olcbean

In the current README.textile there are a few references to multiple types per index. In the example below there are 2 types ( user and tweet ) on the index twitter :

curl -XPUT 'http://localhost:9200/twitter/user/kimchy?pretty' -H 'Content-Type: application/json' -d '{ "name" : "Shay Banon" }'

curl -XPUT 'http://localhost:9200/twitter/tweet/1?pretty' -H 'Content-Type: application/json' -d '
{
    "user": "kimchy",
    "post_date": "2009-11-15T13:12:00",
    "message": "Trying out Elasticsearch, so far so good?"
}'

As per #24428 only one type can be created per index, and the above requests result in an error :

"type" : "illegal_argument_exception",
"reason" : "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [tweet, user]"

Relates to #25401

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions