From 8b7620f9de67794e48c762a81ccd8997bee34d75 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 18 Jul 2011 23:43:10 +0300 Subject: [PATCH] simplify policy and scheduler settings --- .../org/elasticsearch/index/merge/policy/MergePolicyModule.java | 2 +- .../index/merge/scheduler/MergeSchedulerModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/policy/MergePolicyModule.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/policy/MergePolicyModule.java index 22941bf21d0..f2e8b92ed73 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/policy/MergePolicyModule.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/policy/MergePolicyModule.java @@ -35,7 +35,7 @@ public class MergePolicyModule extends AbstractModule { @Override protected void configure() { bind(MergePolicyProvider.class) - .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class)) + .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class, "org.elasticsearch.index.merge.policy", "MergePolicyProvider")) .asEagerSingleton(); } } diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/scheduler/MergeSchedulerModule.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/scheduler/MergeSchedulerModule.java index e601b073490..fd6f593359c 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/scheduler/MergeSchedulerModule.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/merge/scheduler/MergeSchedulerModule.java @@ -41,7 +41,7 @@ public class MergeSchedulerModule extends AbstractModule { @Override protected void configure() { bind(MergeSchedulerProvider.class) - .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class)) + .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler", "MergeSchedulerProvider")) .asEagerSingleton(); } }