I love the fact that there is now a range datatype, but the documentation on how to use it could possibly be improved by explaining that range datatype fields can be matched against using term queries.
The example on
https://www.elastic.co/guide/en/elasticsearch/reference/current/range.html
could be extended with another query like the following:
GET /range_index/my_type/_search
{
"query": {
"term": {
"expected_attendees": {
"value": "12"
}
}
}
}
The documentation for Term Query could also be updated to indicate that they can be used to match against range datatype fields.