Module org.elasticsearch.security
Class OptOutQueryCache
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
Opts out of the query cache if field level security is active for the current request, and it is unsafe to cache.
-
Field Summary
Fields inherited from class org.elasticsearch.index.cache.query.IndexQueryCache
index -
Constructor Summary
ConstructorsConstructorDescriptionOptOutQueryCache(Index index, IndicesQueryCache indicesQueryCache, ThreadContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.WeightdoCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy) Methods inherited from class org.elasticsearch.index.cache.query.IndexQueryCache
clear, close
-
Constructor Details
-
OptOutQueryCache
-
-
Method Details
-
doCache
public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy) - Specified by:
doCachein interfaceorg.apache.lucene.search.QueryCache- Overrides:
doCachein classIndexQueryCache
-