Commit bab97d5a9595ee38d4dda83318edb04c3f98b970
1 parent
7ce0440a
Exists in
master
and in
17 other branches
Wordnet test [skip ci]
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
test/models/animal.rb
... | ... | @@ -4,6 +4,6 @@ class Animal |
4 | 4 | text_start: [:name], |
5 | 5 | suggest: [:name], |
6 | 6 | index_name: -> { "#{name.tableize}-#{Date.today.year}#{Searchkick.index_suffix}" }, |
7 | - callbacks: defined?(ActiveJob) ? :async : true | |
8 | - # wordnet: true | |
7 | + callbacks: defined?(ActiveJob) ? :async : true, | |
8 | + wordnet: ENV["WORDNET"] | |
9 | 9 | end | ... | ... |
test/test_helper.rb
... | ... | @@ -14,6 +14,9 @@ Searchkick.client.transport.logger = $logger |
14 | 14 | Searchkick.search_timeout = 5 |
15 | 15 | Searchkick.index_suffix = ENV["TEST_ENV_NUMBER"] # for parallel tests |
16 | 16 | |
17 | +# add to elasticsearch-7.0.0/config/ | |
18 | +Searchkick.wordnet_path = "wn_s.pl" if ENV["WORDNET"] | |
19 | + | |
17 | 20 | puts "Running against Elasticsearch #{Searchkick.server_version}" |
18 | 21 | |
19 | 22 | if defined?(Redis) | ... | ... |