move to elasticsearch 0.19.0 snap and use some of its features

This commit is contained in:
Shay Banon 2012-01-31 13:02:09 +02:00
parent 0a23a869b6
commit 3ea890a545
3 changed files with 4 additions and 8 deletions

View File

@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
--------------------------------------------------
| Stempel Analysis Plugin | ElasticSearch |
--------------------------------------------------
| master | 0.18 -> master |
| master | master (0.19) |
--------------------------------------------------
| 1.0.0 | 0.18 -> master |
--------------------------------------------------

View File

@ -31,7 +31,7 @@
</parent>
<properties>
<elasticsearch.version>0.18.5</elasticsearch.version>
<elasticsearch.version>0.19.0-SNAPSHOT</elasticsearch.version>
</properties>
<repositories>

View File

@ -48,11 +48,7 @@ public class AnalysisStempelPlugin extends AbstractPlugin {
return ImmutableList.<Class<? extends Module>>of(PolishIndicesAnalysisModule.class);
}
@Override
public void processModule(Module module) {
if (module instanceof AnalysisModule) {
AnalysisModule analysisModule = (AnalysisModule) module;
analysisModule.addProcessor(new PolishAnalysisBinderProcessor());
}
public void onModule(AnalysisModule module) {
module.addProcessor(new PolishAnalysisBinderProcessor());
}
}