mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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;
|
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.AbstractModule;
|
||||||
import org.elasticsearch.common.inject.Scopes;
|
import org.elasticsearch.common.inject.Scopes;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
@ -37,7 +37,7 @@ public class QueryParserCacheModule extends AbstractModule {
|
|||||||
|
|
||||||
@Override protected void configure() {
|
@Override protected void configure() {
|
||||||
bind(QueryParserCache.class)
|
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);
|
.in(Scopes.SINGLETON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user