Skip to content

Empty string with completion type results in IllegalArgumentException #23121

@bjfish

Description

@bjfish

Elasticsearch version:
5.2.0

Description of the problem including expected versus actual behavior:

Result is IllegalArgumentException. Expected empty strings to be ignored.

Is this an issue? If not, is there a recommended resolution?

Steps to reproduce:
In Sense:

PUT twitter
{
  "mappings": {
    "tweet": {
      "properties": {
        "message": {
          "type": "completion"
        }
      }
    }
  }
}

PUT twitter/tweet/3
{
    "message" : ""
}

Edit: Updated description to simpler example.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions