move to elasticsearch 0.19.0 snap and use some of its features
This commit is contained in:
parent
06971acde6
commit
d7b30cb487
|
@ -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 |
|
||||
---------------------------------------------
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -31,7 +31,7 @@
|
|||
</parent>
|
||||
|
||||
<properties>
|
||||
<elasticsearch.version>0.18.5</elasticsearch.version>
|
||||
<elasticsearch.version>0.19.0-SNAPSHOT</elasticsearch.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue