elasticsearch/elasticsearch — pull request #7122 by dadoonet (2014-08-01 10:19:42+00:00)
Title: Query DSL: Cache range filter on date field by default

A range filter on a date field with a numeric `from`/`to` value is **not** cached by default:

DELETE /test

PUT /test/t/1
{
"date": "2014-01-01"
}

GET /_validate/query?explain
{
"query": {
"filtered": {
"filter": {
"range": {
"date": {
"from": 0
}
}
}
}
}
}

Returns:

"explanation": "ConstantScore(no_cache(date:[0 TO *]))"

Closes #7114.