Hi all,
I look for the way to count up "skipped shards" in "_shards" as query result.
The following topic is similar to mine. But nobody has commented to that topic yet.
Based on the following URL,
https://discuss.elastic.co/t/are-shards-skipped-when-a-range-query-does-not-create-hits/120239/
I performed the following scenario. But "skipped shards" is not counted at all.
Would you please tell me why?
-
documents and index
Please refer to hockey index in Painless Examples at
https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-examples.html#painless-examples -
search query(Obviously out of range!)
{
"query": {
"range": {
"born": {
"gte" : "2000/01/01",
"lt" : "2005/12/31"
}
}
}
}
- result (I don't know why "skipped shards" is 0...)
{
"took" : 11,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}