From d7b30cb487bc8a219f401b4a942f1486341cc0f5 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 31 Jan 2012 12:58:12 +0200 Subject: [PATCH] move to elasticsearch 0.19.0 snap and use some of its features --- README.md | 2 +- pom.xml | 2 +- .../plugin/analysis/AnalysisPhoneticPlugin.java | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 55e01d7c012..693250bc2cb 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e --------------------------------------------- | Phonetic Analysis Plugin | ElasticSearch | --------------------------------------------- - | master | 0.18 -> master | + | master | master (0.19) | --------------------------------------------- | 1.0.0 | 0.18 -> master | --------------------------------------------- diff --git a/pom.xml b/pom.xml index 6ff299b1c12..c554834efe2 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ - 0.18.5 + 0.19.0-SNAPSHOT diff --git a/src/main/java/org/elasticsearch/plugin/analysis/AnalysisPhoneticPlugin.java b/src/main/java/org/elasticsearch/plugin/analysis/AnalysisPhoneticPlugin.java index f2e30d49fcf..a99238fc40f 100644 --- a/src/main/java/org/elasticsearch/plugin/analysis/AnalysisPhoneticPlugin.java +++ b/src/main/java/org/elasticsearch/plugin/analysis/AnalysisPhoneticPlugin.java @@ -19,7 +19,6 @@ package org.elasticsearch.plugin.analysis; -import org.elasticsearch.common.inject.Module; import org.elasticsearch.index.analysis.AnalysisModule; import org.elasticsearch.index.analysis.PhoneticAnalysisBinderProcessor; import org.elasticsearch.plugins.AbstractPlugin; @@ -38,12 +37,8 @@ public class AnalysisPhoneticPlugin extends AbstractPlugin { return "Phonetic analysis support"; } - @Override - public void processModule(Module module) { - if (module instanceof AnalysisModule) { - AnalysisModule analysisModule = (AnalysisModule) module; - analysisModule.addProcessor(new PhoneticAnalysisBinderProcessor()); - } + public void onModule(AnalysisModule module) { + module.addProcessor(new PhoneticAnalysisBinderProcessor()); } }