From 5c1a0975c63631930d7f0b903c760e297a0b9db9 Mon Sep 17 00:00:00 2001 From: Rob Bavey Date: Mon, 11 Mar 2019 14:09:51 -0400 Subject: [PATCH] Change internal document type to push "_doc" instead of "doc" This commit fixes x-pack integration tests that were broken by https://github.com/elastic/elasticsearch/pull/39888 removing the "doc" type, and using `_doc` in templates. Fixes #10533 --- x-pack/qa/integration/support/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/qa/integration/support/helpers.rb b/x-pack/qa/integration/support/helpers.rb index 23c6135e72b..62170bbaaf1 100644 --- a/x-pack/qa/integration/support/helpers.rb +++ b/x-pack/qa/integration/support/helpers.rb @@ -95,7 +95,7 @@ def elasticsearch_client(options = { :url => "http://elastic:#{elastic_password} end def push_elasticsearch_config(pipeline_id, config) - elasticsearch_client.index :index => '.logstash', :type => "doc", id: pipeline_id, :body => { :pipeline => config } + elasticsearch_client.index :index => '.logstash', :type => "_doc", id: pipeline_id, :body => { :pipeline => config } end def cleanup_elasticsearch(index = MONITORING_INDEXES)