Skip to content

term_queries are not cached #23343

Closed
Closed
@sundarv85

Description

@sundarv85

Elasticsearch version: 5.2.0

Plugins installed: None

JVM version: 1.8.0_74

OS version: macOS 10.12.3

In our case, almost all our queries are only bool queries with term filters. So we would like to enable the term_queries setting in index.queries.cache.term_queries as described in the pull request #21566

Steps to reproduce:

  1. https://gist.github.com/sundarv85/5aec5d8a50958bee5891e10d11b87fae
  2. I ran the above gist, but I still do not see the term queries to be cached. The "query_cache" object in GET _nodes/stats?pretty is empty. Am I missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions