remove the field settings for query parser cache, not really relevant

This commit is contained in:
Shay Banon 2013-03-27 20:39:36 +01:00
parent c18c609af1
commit 473473e867
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ public class ResidentQueryParserCache extends AbstractIndexComponent implements
public ResidentQueryParserCache(Index index, @IndexSettings Settings indexSettings) { public ResidentQueryParserCache(Index index, @IndexSettings Settings indexSettings) {
super(index, indexSettings); super(index, indexSettings);
this.maxSize = indexSettings.getAsInt("index.cache.field.max_size", componentSettings.getAsInt("max_size", 100)); this.maxSize = componentSettings.getAsInt("max_size", 100);
this.expire = indexSettings.getAsTime("index.cache.field.expire", componentSettings.getAsTime("expire", null)); this.expire = componentSettings.getAsTime("expire", null);
logger.debug("using [resident] query cache with max_size [{}], expire [{}]", maxSize, expire); logger.debug("using [resident] query cache with max_size [{}], expire [{}]", maxSize, expire);
CacheBuilder cacheBuilder = CacheBuilder.newBuilder().maximumSize(maxSize); CacheBuilder cacheBuilder = CacheBuilder.newBuilder().maximumSize(maxSize);