How to count up "skipped shards" in "_shards" as query result

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?

{
  "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" : [ ]
  }
}

none ???

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.