move to elasticsearch 0.19.0 snap and use some of its features
This commit is contained in:
parent
cf4ed728eb
commit
3eef6ad66b
|
@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
| Smart Chinese Analysis Plugin | ElasticSearch |
|
| Smart Chinese Analysis Plugin | ElasticSearch |
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
| master | 0.18 -> master |
|
| master | master (0.19) |
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
| 1.0.0 | 0.18 -> master |
|
| 1.0.0 | 0.18 -> master |
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -31,7 +31,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<elasticsearch.version>0.18.5</elasticsearch.version>
|
<elasticsearch.version>0.19.0-SNAPSHOT</elasticsearch.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.plugin.analysis.smartcn;
|
package org.elasticsearch.plugin.analysis.smartcn;
|
||||||
|
|
||||||
import org.elasticsearch.common.inject.Module;
|
|
||||||
import org.elasticsearch.index.analysis.AnalysisModule;
|
import org.elasticsearch.index.analysis.AnalysisModule;
|
||||||
import org.elasticsearch.index.analysis.SmartChineseAnalysisBinderProcessor;
|
import org.elasticsearch.index.analysis.SmartChineseAnalysisBinderProcessor;
|
||||||
import org.elasticsearch.plugins.AbstractPlugin;
|
import org.elasticsearch.plugins.AbstractPlugin;
|
||||||
|
@ -39,11 +38,7 @@ public class AnalysisSmartChinesePlugin extends AbstractPlugin {
|
||||||
return "Smart Chinese analysis support";
|
return "Smart Chinese analysis support";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public void onModule(AnalysisModule module) {
|
||||||
public void processModule(Module module) {
|
module.addProcessor(new SmartChineseAnalysisBinderProcessor());
|
||||||
if (module instanceof AnalysisModule) {
|
|
||||||
AnalysisModule analysisModule = (AnalysisModule) module;
|
|
||||||
analysisModule.addProcessor(new SmartChineseAnalysisBinderProcessor());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue