chance default query parser cache to none from weak

This commit is contained in:
kimchy 2010-10-25 14:43:06 +02:00
parent deada942e5
commit 517f3eb0fd
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.weak.WeakQueryParserCache;
import org.elasticsearch.cache.query.parser.none.NoneQueryParserCache;
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", WeakQueryParserCache.class, "org.elasticsearch.cache.query.parser.", "QueryParserCache"))
.to(settings.getAsClass("cache.query.parser.type", NoneQueryParserCache.class, "org.elasticsearch.cache.query.parser.", "QueryParserCache"))
.in(Scopes.SINGLETON);
}
}