Skip to content

whitespace allowed in template field name #14033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
podollb opened this issue Oct 8, 2015 · 1 comment
Closed

whitespace allowed in template field name #14033

podollb opened this issue Oct 8, 2015 · 1 comment

Comments

@podollb
Copy link

podollb commented Oct 8, 2015

If I PUT this template definition to http://localhost:9200/_template/my_new_template it works, but notice the field name "some_field " actually has a trailing whitespace in the String (I think that should be trimmed).

{
  "template": "some_index_*",
  "mappings": {
    "some_mapping": {
      "properties": {
        "some_field ": {
          "type": "double"
        }
      }
    }
  }
}
@clintongormley
Copy link
Contributor

Agreed - closing as duplicate of #9059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants