elasticsearchをダウンロードした後についてエラーで止まっております。  
どなたかご教授いただけると幸いです。

現状の状態  
elasticsearchコマンドを入力するとelasticsearchが立ち上がりましたが、  
`bundle exec rake search_index:create_and_import` コマンドを入力するとエラーになります

> rake aborted!
>
> Elasticsearch::Transport::Transport::Errors::BadRequest: [400]
> {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed
> to parse mapping [service]: The [string] type is removed in 5.0 and
> automatic upgrade failed because parameters [boost] are not supported for
> automatic upgrades. You should now use either a [text] or [keyword] field
> instead for field
> [name]"}],"type":"mapper_parsing_exception","reason":"Failed to parse
> mapping [service]: The [string] type is removed in 5.0 and automatic upgrade
> failed because parameters [boost] are not supported for automatic upgrades.
> You should now use either a [text] or [keyword] field instead for field
> [name]","caused_by":{"type":"illegal_argument_exception","reason":"The
> [string] type is removed in 5.0 and automatic upgrade failed because
> parameters [boost] are not supported for automatic upgrades. You should now
> use either a [text] or [keyword] field instead for field
> [name]"}},"status":400}  
>
CC BY-SA 3.0
2017-01-23T12:36:52.993
32088
2017-01-30T06:49:10.837
2017-01-24T00:48:17.600
19110
20360
question
ruby elasticsearch
elasticsearchについて
自己解決しました  
ver 1-5-2でinstallすれば完了しました
CC BY-SA 3.0
2017-01-24T01:54:08.857
32095
2017-01-24T01:54:08.857
20360
32088
answer
同じ現象で、`gemfile` に  
`gem 'elasticsearch', '2.4.1'` を書いて

`bundle update elasticsearch` で  
`Could not find gem 'elasticsearch (= 2.4.1)' in any of the gem sources listed
in your Gemfile.` と言われます。

どうすればよろしいでしょうか。
CC BY-SA 3.0
2017-01-30T06:49:10.837
32247
2017-01-30T06:49:10.837
20450
32088
answer