Class IndicesQueryCache

org.elasticsearch.indices.IndicesQueryCache
All Implemented Interfaces:
, , org.apache.lucene.search.QueryCache

public class IndicesQueryCache extends implements org.apache.lucene.search.QueryCache,
  • Field Details

    • INDICES_CACHE_QUERY_SIZE_SETTING

      public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE_SETTING
    • INDICES_CACHE_QUERY_COUNT_SETTING

      public static final > INDICES_CACHE_QUERY_COUNT_SETTING
    • INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING

      public static final > INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING
  • Constructor Details

    • IndicesQueryCache

      public IndicesQueryCache(Settings settings)
  • Method Details

    • getStats

      public QueryCacheStats getStats(ShardId shard)
      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 interface org.apache.lucene.search.QueryCache
    • clearIndex

      public void clearIndex( index)
      Clear all entries that belong to the given index.
    • close

      public void close()
      Specified by:
       in interface 
      Specified by:
       in interface 
    • onClose

      public void onClose(ShardId shardId)