From 90e80cf83c670b51ac3c37512a8a802abc85474b Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 31 Jan 2012 12:55:10 +0200 Subject: [PATCH] move to 0.19 snap and use some of its features --- README.md | 2 +- pom.xml | 2 +- .../plugin/analysis/icu/AnalysisICUPlugin.java | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 993a644485b..403c9a5257a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e ---------------------------------------- | ICU Analysis Plugin | ElasticSearch | ---------------------------------------- - | master | 0.18 -> master | + | master | master (0.19) | ---------------------------------------- | 1.1.0 | 0.18 -> master | ---------------------------------------- diff --git a/pom.xml b/pom.xml index bbb385d4079..33833a97731 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/icu/AnalysisICUPlugin.java b/src/main/java/org/elasticsearch/plugin/analysis/icu/AnalysisICUPlugin.java index c4d83661698..975bcf14b5d 100644 --- a/src/main/java/org/elasticsearch/plugin/analysis/icu/AnalysisICUPlugin.java +++ b/src/main/java/org/elasticsearch/plugin/analysis/icu/AnalysisICUPlugin.java @@ -48,11 +48,10 @@ public class AnalysisICUPlugin extends AbstractPlugin { return ImmutableList.>of(IcuIndicesAnalysisModule.class); } - @Override - public void processModule(Module module) { - if (module instanceof AnalysisModule) { - AnalysisModule analysisModule = (AnalysisModule) module; - analysisModule.addProcessor(new IcuAnalysisBinderProcessor()); - } + /** + * Automatically called with the analysis module. + */ + public void onModule(AnalysisModule module) { + module.addProcessor(new IcuAnalysisBinderProcessor()); } }