Query cache is always empty

In setting of index:

"queries": {
      "cache": {
        "enabled": "true"
      }
},
GET products/_search
{
  "query": {
    "bool" : {
      "must": [
        {
          "match": {
            "product_flat.name": "amet"
          }
        }
      ]
      ,"filter" : [
        {
          "nested": {
            "path": "categories",
            "query": {
              "bool": {
                "must": [
                  { "term": { "categories.id": 5 }}
                ]
              }
            }
          }
        }
      ]
    }
  }
}

But when i check at [GET /_nodes/stats/indices/query_cache], query cache is always empty.
Can someone explain it to me?

anyone here?

Elasticsearch version: 7.9

I tested on cloud but nothing changed, how can I use query cache??

Have you looked at the docs covering this? Does your index have enough data to trigger/warrant caching?

Do you have a performance problem you are looking to solve?

1 Like

It seems I don't have enough data to use query cache, I'm a newbie in using Elasticsearch, thank you so much.

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