Skip to content
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

String with index:false results in keyword with index:true #18062

Closed
clintongormley opened this issue Apr 29, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@clintongormley
Copy link
Member

commented Apr 29, 2016

Putting this mapping:

PUT t 
{
  "mappings": {
    "t": {
      "properties": {
        "foo": {
          "type": "string",
          "index": false
        }
      }
    }
  }
}

Results in:

{
  "t": {
    "mappings": {
      "t": {
        "properties": {
          "foo": {
            "type": "keyword"
          }
        }
      }
    }
  }
}
@jpountz

This comment has been minimized.

Copy link
Contributor

commented Apr 29, 2016

I suspect the parser gets confused by the fact that it mixes new/old syntax (index:false instead of index:no on a legacy string field).

@jpountz

This comment has been minimized.

Copy link
Contributor

commented Apr 29, 2016

What is the expected behaviour? I think it should throw an error?

@clintongormley

This comment has been minimized.

Copy link
Member Author

commented Apr 29, 2016

I'm ok with throwing the error, as at least it doesn't fail silently. The alternative would probably be more complex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.