bring back query parsing cache (weak)
This commit is contained in:
parent
2c65be2aad
commit
0a0ac35792
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue