bring back query parsing cache (weak)

This commit is contained in:
kimchy 2010-10-25 18:09:40 +02:00
parent 2c65be2aad
commit 0a0ac35792
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
package org.elasticsearch.cache.query.parser;
import org.elasticsearch.cache.query.parser.none.NoneQueryParserCache;
import org.elasticsearch.cache.query.parser.weak.WeakQueryParserCache;
import org.elasticsearch.common.inject.AbstractModule;
import org.elasticsearch.common.inject.Scopes;
import org.elasticsearch.common.settings.Settings;
@ -37,7 +37,7 @@ public class QueryParserCacheModule extends AbstractModule {
@Override protected void configure() {
bind(QueryParserCache.class)
.to(settings.getAsClass("cache.query.parser.type", NoneQueryParserCache.class, "org.elasticsearch.cache.query.parser.", "QueryParserCache"))
.to(settings.getAsClass("cache.query.parser.type", WeakQueryParserCache.class, "org.elasticsearch.cache.query.parser.", "QueryParserCache"))
.in(Scopes.SINGLETON);
}
}