Skip to content

Commit

Permalink
Index optimize method should return the response but does not.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanrivers committed Mar 12, 2015
1 parent 36165fb commit 7a46679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Elastica/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function deleteDocuments(array $docs)
*/
public function optimize($args = array())
{
$this->request('_optimize', Request::POST, array(), $args);
return $this->request('_optimize', Request::POST, array(), $args);
}

/**
Expand Down

0 comments on commit 7a46679

Please sign in to comment.