{
"mappings": {
"properties": {
"user_ids": {"type": "integer"}
}
}
}
{"user_ids": 1}
, and data will show up correctly{"user_ids": "x"}
, and error is thrown failed to parse field [user_ids] of type [integer] in document
, indicating that mapping is working correctly{"user_ids": [1]}
just clears the field, without throwing error.settings
config, doesn't change anythingkeyword
type, doesn't change anythingTurns out it's my own error: I was using elasticsearch-head for quick checking of values, and they don't support displaying of array values :/ Once I double checked with queries, they came back correct.