java.lang.Object
org.elasticsearch.index.cache.query.IndexQueryCache
org.elasticsearch.xpack.security.authz.accesscontrol.OptOutQueryCache
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.search.QueryCache, QueryCache

public final class OptOutQueryCache extends IndexQueryCache
Opts out of the query cache if field level security is active for the current request, and it is unsafe to cache.
  • Constructor Details

  • Method Details

    • doCache

      public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy)
      Specified by:
      doCache in interface org.apache.lucene.search.QueryCache
      Overrides:
      doCache in class IndexQueryCache