# Query cache is empty

**URL:** <https://discuss.elastic.co/t/query-cache-is-empty/84515>\
**Category:** Elasticsearch\
**Created:** [May 4, 2017, 9:06am UTC](https://discuss.elastic.co/t/query-cache-is-empty/84515 "2017-05-04T09:06:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhananjoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhananjoy/32/17923_2.png) [@dhananjoy](https://discuss.elastic.co/u/dhananjoy)\
**Post date:** [May 4, 2017, 9:06am UTC](https://discuss.elastic.co/t/query-cache-is-empty/84515/1 "2017-05-04T09:06:13Z")

</div>

I'am using this same query for each keyword:

```auto
{
    'query': {
      'bool': {
        'filter': [
            { 'exists': { 'field': 'title' } },
            { 'exists': { 'field': 'price' } },
            { 'exists': { 'field': 'description' } },
            { 'exists': { 'field': 'images' } },
            { 'exists': { 'field': 'dimensions.width' } },
            { 'exists': { 'field': 'dimensions.length' } },
            { 'exists': { 'field': 'dimensions.weight' } },
            { 'exists': { 'field': 'dimensions.height' } },
            { 'range' : { 'price' : { 'gt' : 400 } } },
            { 'range' : { 'dimensions.weight' : { 'gt' : 6 } } },
        ],
        'should': [
          { 'match': { 'title': { 'query': keyword, 'boost': 2 } } },
          { 'match': { 'description': { 'query': keyword } } },
          { 'match': { 'brand': { 'query': keyword, 'boost': 2 } } }
        ]
      }
    }
}

```

But the queries are very slow (~2-3s in average, total docs are ~10M) and I'm seeing no cache in stats. Aren't the filters supposed to get cached automatically?

```auto
"query_cache": {
  "memory_size": "0b",
  "memory_size_in_bytes": 0,
  "total_count": 0,
  "hit_count": 0,
  "miss_count": 0,
  "cache_size": 0,
  "cache_count": 0,
  "evictions": 0
},
"fielddata": {
  "memory_size": "0b",
  "memory_size_in_bytes": 0,
  "evictions": 0,
  "fields": {}
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 1, 2017, 9:17am UTC](https://discuss.elastic.co/t/query-cache-is-empty/84515/2 "2017-06-01T09:17:22Z")

</div>

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