Class IndicesQueryCache

    • Field Detail

      • INDICES_CACHE_QUERY_SIZE_SETTING

        public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE_SETTING
      • INDICES_CACHE_QUERY_COUNT_SETTING

        public static final Setting<Integer> INDICES_CACHE_QUERY_COUNT_SETTING
      • INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING

        public static final Setting<Boolean> INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING
    • Constructor Detail

      • IndicesQueryCache

        public IndicesQueryCache​(Settings settings)
    • Method Detail

      • doCache

        public Weight doCache​(Weight weight,
                              QueryCachingPolicy policy)
        Description copied from interface: QueryCache
        Return a wrapper around the provided weight that will cache matching docs per-segment accordingly to the given policy. NOTE: The returned weight will only be equivalent if scores are not needed.
        Specified by:
        doCache in interface QueryCache
        See Also:
        Collector.scoreMode()
      • clearIndex

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

        public void onClose​(ShardId shardId)