Skip to content

Commit

Permalink
fixed rewrite doc while using single update
Browse files Browse the repository at this point in the history
  • Loading branch information
armax15 committed Aug 13, 2021
1 parent 09a0365 commit 795ebe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ElasticSearch/Transport/HTTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function index($document, $id=false, array $options = array()) {
* @param array $options
*/
public function update($partialDocument, $id, array $options = array()) {
$url = $this->buildUrl(array($this->type, $id), $options);
$url = $this->buildUrl(array($this->type, $id, '_update'), $options);

return $this->call($url, "POST", array('doc' => $partialDocument));
}
Expand Down

0 comments on commit 795ebe1

Please sign in to comment.