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

public class IndexQueryCache extends AbstractIndexComponent implements QueryCache
The index-level query cache. This class mostly delegates to the node-level query cache: IndicesQueryCache.
  • Constructor Details

  • Method Details

    • close

      public void close() throws ElasticsearchException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      ElasticsearchException
    • clear

      public void clear(String reason)
      Specified by:
      clear in interface QueryCache
    • 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