Commit 73cfadb1f3a963d031e91b2093fb064d10038001
1 parent
bac52015
Exists in
master
and in
19 other branches
Updated error messages [skip ci]
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -179,14 +179,14 @@ module Searchkick |
179 | 179 | e.message.include?("No query registered for [function_score]") |
180 | 180 | ) |
181 | 181 | |
182 | - raise UnsupportedVersionError, "This version of Searchkick requires Elasticsearch 2 or greater" | |
182 | + raise UnsupportedVersionError, "This version of Searchkick requires Elasticsearch 5 or greater" | |
183 | 183 | elsif status_code == 400 |
184 | 184 | if ( |
185 | 185 | e.message.include?("bool query does not support [filter]") || |
186 | 186 | e.message.include?("[bool] filter does not support [filter]") |
187 | 187 | ) |
188 | 188 | |
189 | - raise UnsupportedVersionError, "This version of Searchkick requires Elasticsearch 2 or greater" | |
189 | + raise UnsupportedVersionError, "This version of Searchkick requires Elasticsearch 5 or greater" | |
190 | 190 | elsif e.message.include?("[multi_match] analyzer [searchkick_search] not found") |
191 | 191 | raise InvalidQueryError, "Bad mapping - run #{reindex_command}" |
192 | 192 | else | ... | ... |