src/ElasticSearch/Client.php
protected function expandPath($path) {
        $path = (array) $path;
        $isAbsolute = $path[0][0] === '/';

        return $isAbsolute
            ? $path
            : array_merge((array) $this->type, $path);
    }
protected function expandPath($path) {
        $path = (array) $path;
        $isAbsolute = $path[0][0] === '/';

        return $isAbsolute
            ? $path
            : array_merge((array) $this->type, $path);
    }
Expand a given path (array or string)
If this is not an absolute path index + type will be prepended
If it is an absolute path it will be used as is

@param mixed $path
@return array