Class IndexQueryCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.query.IndexQueryCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.search.QueryCache
,QueryCache
,IndexComponent
The index-level query cache. This class mostly delegates to the node-level
query cache:
IndicesQueryCache
.-
Field Summary
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Constructor Summary
ConstructorDescriptionIndexQueryCache(IndexSettings indexSettings, IndicesQueryCache indicesQueryCache)
-
Method Summary
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
-
Constructor Details
-
IndexQueryCache
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
ElasticsearchException
-
clear
- Specified by:
clear
in interfaceQueryCache
-
doCache
public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy)- Specified by:
doCache
in interfaceorg.apache.lucene.search.QueryCache
-