Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Bug Using elasticsearch 5.3 and scroll API. ``` $path = '_search/scroll'; $this->elasticsearch->setIndex(null)->setType(null); $this->elasticsearch->request($path, 'POST', [ 'scroll' => '10m', 'scroll_id' => $scrollId, ]) ``` This was generating the following url: `//_search/scroll` with double slashes causing following error: ``` { "error": { "root_cause": [ { "type": "string_index_out_of_bounds_exception", "reason": "String index out of range: 0" } ], "type": "string_index_out_of_bounds_exception", "reason": "String index out of range: 0" }, "status": 500 } ``` # Solution Avoid adding an extra slash when `$this->index` is null.
- Loading branch information