Commit 012fa52c authored by 段英荣's avatar 段英荣

modify

parent a67d0020
...@@ -114,9 +114,14 @@ cp ./synonym.txt /srv/apps/elasticsearch/config/analysis/ ...@@ -114,9 +114,14 @@ cp ./synonym.txt /srv/apps/elasticsearch/config/analysis/
cat $DICFILE > ./synonym.dic cat $DICFILE > ./synonym.dic
cp ./synonym.dic /srv/apps/elasticsearch/plugins/analysis-ik/config/ik/custom/ cp ./synonym.dic /srv/apps/elasticsearch/plugins/analysis-ik/config/ik/custom/
rm -rf /srv/apps/elasticsearch/config/analysis-ik/*
cp -rf ./config /srv/apps/elasticsearch/config/analysis-ik/ if [[ "$SYS" == "alpha" ]]
cp ./synonym.dic /srv/apps/elasticsearch/config/analysis-ik/config/ik/custom/ then
rm -rf /srv/apps/elasticsearch/config/analysis-ik/*
cp -f ./config/ik/IKAnalyzer.cfg.xml /srv/apps/elasticsearch/config/analysis-ik/
cp -rf ./config/ik/custom /srv/apps/elasticsearch/config/analysis-ik/
cp ./synonym.dic /srv/apps/elasticsearch/config/analysis-ik/custom/
fi
# update es # update es
echo "update self `hostname`" echo "update self `hostname`"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment