Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.43 KB

rebuild.md

File metadata and controls

46 lines (34 loc) · 1.43 KB

Use this README to rebuild the plugin according to your ES version.

Install sbt

brew install sbt

cd under the original repo elasticsearch for the following steps

git clone the original repo

git clone https://bitbucket.org/eunjeon/seunjeon/src/master/elasticsearch/

Download the dictionary

./scripts/download-dict.sh mecab-ko-dic-2.0.1-20150920

Modify the file build.sbt to work it with your ES version

sed 's/\$es_version_for_rebuild/"your_es_version"/' ~/elasticsearch-analysis-seunjeon/seunjeon-patch.diff | git apply

Build the dictionary

sbt -J-Xmx2G "runMain org.bitbucket.eunjeon.seunjeon.DictBuilder"

Build es plugin

sbt elasticsearch/esZip 

The above two steps might fail if your es version does not work with certain types or dependencies the original plugin used. You may need to manually change certain parts in the plugin code to make the build pass as mentioned in Limit of this rebuild

If you could make your build work, please contribute to this repo by making your changes into a git diff patch file and make a pull request!

Now you should be able to see elasticsearch-analysis-seunjeon-assembly-yourEsVersion.zip inside of /elastic/target folder. And you are good to install it.

Install plugin in Elasticsearch

In your Elasticsearch cluster

bin/elasticsearch-plugin install file:///elasticsearch/target/elasticsearch-analysis-seunjeon-assembly-7.1.1.1.zip