Skip to content

Put mapping _all with no indices fails #79

Closed
@clintongormley

Description

@clintongormley

Hiya

If no indices exist, then put_mapping on _all fails:

curl -XPUT 'http://127.0.0.2:9200/_all/type_1/_mapping?ignoreConflicts=true'  -d '
> {
>    "properties" : {
>       "num" : {
>          "store" : "yes",
>          "type" : "integer"
>       },
>       "text" : {
>          "store" : "yes",
>          "type" : "string"
>       }
>    }
> }
> '
{
  "error" : "NoSuchElementException[null]"
}

Maybe this is correct?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions