Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Use PUT to create indices, not POST
Browse files Browse the repository at this point in the history
  • Loading branch information
micw committed Oct 17, 2016
1 parent 0511f9d commit c6fc392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _site/dist/kopf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4701,7 +4701,7 @@ kopf.factory('ElasticService', ['$http', '$q', '$timeout', '$location',
*/
this.createIndex = function(name, settings, success, error) {
var path = '/' + encode(name);
this.clusterRequest('POST', path, {}, settings, success, error);
this.clusterRequest('PUT', path, {}, settings, success, error);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/kopf/services/elastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ kopf.factory('ElasticService', ['$http', '$q', '$timeout', '$location',
*/
this.createIndex = function(name, settings, success, error) {
var path = '/' + encode(name);
this.clusterRequest('POST', path, {}, settings, success, error);
this.clusterRequest('PUT', path, {}, settings, success, error);
};

/**
Expand Down

0 comments on commit c6fc392

Please sign in to comment.