Example usage for org.apache.lucene.search QueryCache interface-usage

List of usage examples for org.apache.lucene.search QueryCache interface-usage

Introduction

In this page you can find the example usage for org.apache.lucene.search QueryCache interface-usage.

Usage

From source file org.elasticsearch.index.cache.query.QueryCache.java

/**
 *
 */
public interface QueryCache extends IndexComponent, Closeable, org.apache.lucene.search.QueryCache {

    static class EntriesStats {

From source file org.elasticsearch.indices.cache.query.IndicesQueryCache.java

public class IndicesQueryCache extends AbstractComponent implements QueryCache, Closeable {

    public static final String INDICES_CACHE_QUERY_SIZE = "indices.queries.cache.size";
    @Deprecated
    public static final String DEPRECATED_INDICES_CACHE_QUERY_SIZE = "indices.cache.filter.size";
    public static final String INDICES_CACHE_QUERY_COUNT = "indices.queries.cache.count";

From source file org.elasticsearch.indices.IndicesQueryCache.java

public class IndicesQueryCache extends AbstractComponent implements QueryCache, Closeable {

    public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE_SETTING = Setting
            .byteSizeSetting("indices.queries.cache.size", "10%", Property.NodeScope);
    public static final Setting<Integer> INDICES_CACHE_QUERY_COUNT_SETTING = Setting
            .intSetting("indices.queries.cache.count", 10000, 1, Property.NodeScope);

From source file uk.co.flax.luwak.ParsingQueryCache.java

public abstract class ParsingQueryCache implements QueryCache {

    private final LoadingCache<String, Query> queries = CacheBuilder.newBuilder()
            .build(new CacheLoader<String, Query>() {
                @Override
                public Query load(String query) throws Exception {