Hm...
If I execute a such query:
{
"size":100,
"profile":true,
"query":{
"bool":{
"should":[
{
"range":{
"metadata.sums":{
"from":1128539.0,
"to":1128540.0,
"include_lower":true,
"include_upper":false,
"boost":1.0
}
}
}
],
"minimum_should_match":"1",
"boost":1.0
}
}
}
then I'll get response very quickly:
{
"took":3,
"timed_out":false,
"_shards":{
"total":1,
"successful":1,
"skipped":0,
"failed":0
},
"hits":{
"total":{
"value":0,
"relation":"eq"
},
"max_score":null,
"hits":[
]
},
"profile":{
"shards":[
{
"id":"[7k_HXKpPQBiijcQNPpiUCg][documents-v3][4]",
"searches":[
{
"query":[
{
"type":"IndexOrDocValuesQuery",
"description":"metadata.sums:[1128539.0 TO 1128539.9999999998]",
"time_in_nanos":1961299,
"breakdown":{
"set_min_competitive_score_count":0,
"match_count":0,
"shallow_advance_count":0,
"set_min_competitive_score":0,
"next_doc":0,
"match":0,
"next_doc_count":0,
"score_count":0,
"compute_max_score_count":0,
"compute_max_score":0,
"advance":6050,
"advance_count":41,
"score":0,
"build_scorer_count":84,
"create_weight":1187,
"shallow_advance":0,
"create_weight_count":1,
"build_scorer":1953936
}
}
],
"rewrite_time":50759,
"collector":[
{
"name":"CancellableCollector",
"reason":"search_cancelled",
"time_in_nanos":18202,
"children":[
{
"name":"SimpleTopScoreDocCollector",
"reason":"search_top_hits",
"time_in_nanos":7412
}
]
}
]
}
],
"aggregations":[
]
}
]
}
}
IndexOrDocValuesQuery takes 1.9 msec and cancelled