Commit d33e71a96f34b51d0f67e7ed32044318f5d8bc2d
1 parent
0729e511
Exists in
test_language
Take 2
Showing
2 changed files
with
12 additions
and
6 deletions
Show diff stats
test/ci/install_elasticsearch.sh
... | ... | @@ -14,6 +14,16 @@ if [ ! -d "$CACHE_DIR" ]; then |
14 | 14 | wget -O elasticsearch-$ELASTICSEARCH_VERSION.tar.gz $URL |
15 | 15 | tar xvfz elasticsearch-$ELASTICSEARCH_VERSION.tar.gz |
16 | 16 | mv elasticsearch-$ELASTICSEARCH_VERSION $CACHE_DIR |
17 | + | |
18 | + cd $CACHE_DIR | |
19 | + | |
20 | + bin/elasticsearch-plugin install analysis-kuromoji | |
21 | + if [[ $ELASTICSEARCH_VERSION != 6.0.* ]]; then | |
22 | + bin/elasticsearch-plugin install analysis-nori | |
23 | + fi | |
24 | + bin/elasticsearch-plugin install analysis-smartcn | |
25 | + bin/elasticsearch-plugin install analysis-stempel | |
26 | + bin/elasticsearch-plugin install analysis-ukrainian | |
17 | 27 | else |
18 | 28 | echo "Elasticsearch cached" |
19 | 29 | fi |
... | ... | @@ -21,9 +31,3 @@ fi |
21 | 31 | cd $CACHE_DIR |
22 | 32 | bin/elasticsearch -d |
23 | 33 | for i in {1..12}; do wget -O- -v http://127.0.0.1:9200/ && break || sleep 5; done |
24 | - | |
25 | -bin/elasticsearch-plugin install analysis-kuromoji | |
26 | -bin/elasticsearch-plugin install analysis-nori | |
27 | -bin/elasticsearch-plugin install analysis-smartcn | |
28 | -bin/elasticsearch-plugin install analysis-stempel | |
29 | -bin/elasticsearch-plugin install analysis-ukrainian | ... | ... |
test/language_test.rb
... | ... | @@ -52,6 +52,8 @@ class LanguageTest < Minitest::Test |
52 | 52 | end |
53 | 53 | |
54 | 54 | def test_korean2 |
55 | + skip if Searchkick.server_below?("6.4.0") | |
56 | + | |
55 | 57 | # requires https://www.elastic.co/guide/en/elasticsearch/plugins/7.4/analysis-nori.html |
56 | 58 | with_options(Song, language: "korean2") do |
57 | 59 | store_names ["한국어를 처리하는 예시입니닼ㅋㅋ"], Song | ... | ... |