Skip to content

Commit

Permalink
Change internal document type to push "_doc" instead of "doc"
Browse files Browse the repository at this point in the history
This commit fixes x-pack integration tests that were broken by elastic/elasticsearch#39888 removing the "doc"
 type, and using `_doc` in templates.

Fixes #10533
  • Loading branch information
robbavey committed Mar 11, 2019
1 parent 0910353 commit 5c1a097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/qa/integration/support/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c1a097

Please sign in to comment.