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}