2017-04-08 7 views
1

プロジェクト用の新しいプロダクションサーバをセットアップしようとしていますが、elasticsearchを設定する際に問題があります。私は、レールコンソールからモデルのインポートを作るしようとすると、取得(*** - >グレー表示):エラスティック検索不正リクエスト - uriのハンドラが見つかりません

Elasticsearch::Transport::Transport::Errors::BadRequest: [400] No handler found for uri [//***/***/_bulk?type=***] and method [POST] 
from /***/gems/elasticsearch-transport-1.0.12/lib/elasticsearch/transport/transport/base.rb:135:in `__raise_transport_error' 
from /***/elasticsearch-transport-1.0.12/lib/elasticsearch/transport/transport/base.rb:227:in `perform_request' 
from /***/elasticsearch-transport-1.0.12/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_re 

のように私の初期化ファイルが見えます:私はElasticsearchバージョンを使用

config = { 
    host: 'http://localhost:9200/', 
    transport_options: { 
    request: { timeout: 5 } 
} 
} 
if File.exist?('config/elasticsearch.yml') 
    config.merge!  (YAML.load_file('config/elasticsearch.yml').symbolize_keys) 
end 

Elasticsearch::Model.client = Elasticsearch::Client.new(config) 

5.3.0

+0

正常に動作します:http://stackoverflow.com/questions/35025401/no-handler-found-for-uri-index-type-メソッド・プット –

答えて

0

最善の方法はありませんが、何が問題なのかをチェックした後、私は以前のバージョンに切り替えました。たぶん、この質問をするのに役立ちます

ありませんが、私はES 2.3.1を使用し、すべてが

関連する問題