Skip to content

Commit

Permalink
Update dependency on Tire, compatibility with new versions of suggest…
Browse files Browse the repository at this point in the history
… plugin

In newer version of Elasticsearch suggest plugin we should use
`__suggest` instead of `_suggest` in api.
  • Loading branch information
dzhlobo committed Mar 3, 2015
1 parent 977bcb7 commit 496df69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tire/suggest_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def perform
end

def url
path = ['/', @indices.join(','), '_suggest'].join('/').squeeze('/')
path = ['/', @indices.join(','), '__suggest'].join('/').squeeze('/')
Tire::Configuration.url + path
end

Expand Down
2 changes: 1 addition & 1 deletion tire-suggest_plugin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"

spec.add_dependency "tire", "~> 0.5.8"
spec.add_dependency "tire", "~> 0.6.0"
end

0 comments on commit 496df69

Please sign in to comment.