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