Commit 8ed1eacb6737b06ce45872cabb54b5ffea9aec63
1 parent
fd8d1c8b
Exists in
master
and in
21 other branches
Subclass Elasticsearch::Transport::Transport::Errors::BadRequest for backward compatibility
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick.rb
... | ... | @@ -15,7 +15,7 @@ require "searchkick/logging" if defined?(Rails) |
15 | 15 | module Searchkick |
16 | 16 | class MissingIndexError < StandardError; end |
17 | 17 | class UnsupportedVersionError < StandardError; end |
18 | - class InvalidQueryError < StandardError; end | |
18 | + class InvalidQueryError < Elasticsearch::Transport::Transport::Errors::BadRequest; end | |
19 | 19 | |
20 | 20 | def self.client |
21 | 21 | @client ||= Elasticsearch::Client.new(url: ENV["ELASTICSEARCH_URL"]) | ... | ... |