Package org.elasticsearch.indices
Class IndicesQueryCache
java.lang.Object
org.elasticsearch.indices.IndicesQueryCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.search.QueryCache
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearIndex(String index)
Clear all entries that belong to the given index.void
close()
org.apache.lucene.search.Weight
doCache(org.apache.lucene.search.Weight weight, org.apache.lucene.search.QueryCachingPolicy policy)
Get usage statistics for the given shard.void
-
Field Details
-
INDICES_CACHE_QUERY_SIZE_SETTING
-
INDICES_CACHE_QUERY_COUNT_SETTING
-
INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING
-
-
Constructor Details
-
IndicesQueryCache
-
-
Method Details
-
getStats
Get usage statistics for the given shard. -
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
-
clearIndex
Clear all entries that belong to the given index. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
onClose
-