Skip to content

Commit

Permalink
Add 'create' param to Indices/PutTemplate API
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jun 18, 2014
1 parent e1cc94e commit b06ed72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Indices/Template/Put.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected function getParamWhitelist()
'timeout',
'master_timeout',
'flat_settings',
'create'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Namespaces/IndicesNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ public function putWarmer($params)
* ['order'] = (number) The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
* ['timeout'] = (time) Explicit operation timeout
* ['body'] = (time) Explicit operation timeout
* ['create'] = (bool) Whether the index template should only be added if new or can also replace an existing one
*
* @param $params array Associative array of parameters
*
Expand Down

0 comments on commit b06ed72

Please sign in to comment.