public final class PercolatorQueryCache extends AbstractIndexComponent implements java.io.Closeable, org.apache.lucene.index.LeafReader.CoreClosedListener, PercolatorQuery.QueryRegistry
PercolatorQuery.QueryRegistry.Leaf
Modifier and Type | Field and Description |
---|---|
static Setting<java.lang.Boolean> |
INDEX_MAP_UNMAPPED_FIELDS_AS_STRING_SETTING |
static XContentType |
QUERY_BUILDER_CONTENT_TYPE |
deprecationLogger, indexSettings, logger
Constructor and Description |
---|
PercolatorQueryCache(IndexSettings indexSettings,
java.util.function.Supplier<QueryShardContext> queryShardContextSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
IndexWarmer.Listener |
createListener(ThreadPool threadPool) |
PercolatorQuery.QueryRegistry.Leaf |
getQueries(org.apache.lucene.index.LeafReaderContext ctx) |
PercolatorQueryCacheStats |
getStats(ShardId shardId) |
void |
onClose(java.lang.Object cacheKey) |
getIndexSettings, index
public static final Setting<java.lang.Boolean> INDEX_MAP_UNMAPPED_FIELDS_AS_STRING_SETTING
public static final XContentType QUERY_BUILDER_CONTENT_TYPE
public PercolatorQueryCache(IndexSettings indexSettings, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier)
public PercolatorQuery.QueryRegistry.Leaf getQueries(org.apache.lucene.index.LeafReaderContext ctx)
getQueries
in interface PercolatorQuery.QueryRegistry
public IndexWarmer.Listener createListener(ThreadPool threadPool)
public PercolatorQueryCacheStats getStats(ShardId shardId)
public void onClose(java.lang.Object cacheKey) throws java.io.IOException
onClose
in interface org.apache.lucene.index.LeafReader.CoreClosedListener
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException