Commit f75733fd6007694ac0dbd53c298f008a9c1de549
1 parent
ee62747a
Exists in
master
Improved error message for unsupported versions of Elasticsearch - #1569
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/searchkick/index.rb
... | ... | @@ -418,7 +418,7 @@ module Searchkick |
418 | 418 | true |
419 | 419 | end |
420 | 420 | rescue => e |
421 | - if Searchkick.transport_error?(e) && e.message.include?("No handler for type [text]") | |
421 | + if Searchkick.transport_error?(e) && (e.message.include?("No handler for type [text]") || e.message.include?("class java.util.ArrayList cannot be cast to class java.util.Map")) | |
422 | 422 | raise UnsupportedVersionError |
423 | 423 | end |
424 | 424 | ... | ... |