Closed
Description
Summary of problem or feature request
I need to use a host in which Elastic is available via a subfolder. The host is being carried on correctly until the Transport
class.
There it uses the Node
object to build a connection URI but the path
part of the configured host is not being used.
Code snippet of problem
private function setupConnectionUri(Node $node, RequestInterface $request): RequestInterface
{
$uri = $node->getUri();
return $request->withUri(
$request->getUri()
->withHost($uri->getHost())
->withPort($uri->getPort())
->withScheme($uri->getScheme())
);
}
System details
- Operating System: RHEL7
- PHP Version: 8.1
- ES-PHP client version 8.10.0
- Elasticsearch version: 7.17.14
Metadata
Metadata
Assignees
Labels
No labels