Class BitsetFilterCache

java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.bitset.BitsetFilterCache
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.apache.lucene.index.IndexReader.ClosedListener, RemovalListener<org.apache.lucene.index.IndexReader.CacheKey,​Cache<org.apache.lucene.search.Query,​BitsetFilterCache.Value>>, IndexComponent

public final class BitsetFilterCache
extends AbstractIndexComponent
implements org.apache.lucene.index.IndexReader.ClosedListener, RemovalListener<org.apache.lucene.index.IndexReader.CacheKey,​Cache<org.apache.lucene.search.Query,​BitsetFilterCache.Value>>, java.io.Closeable
This is a cache for BitDocIdSet based filters and is unbounded by size or time.

Use this cache with care, only components that require that a filter is to be materialized as a BitDocIdSet and require that it should always be around should use this cache, otherwise the QueryCache should be used instead.