Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Currently the request method is hardcoded and I need to change it to be able to use a proxy. My current workaround is the following:
$search = $this->indexType->createSearch($query); //request via client, otherwise the path string generation will be prefixed again. $response = $this->indexType->getIndex()->getClient()->request( $search->getPath(), Request::POST, $search->getQuery()->toArray(), $options ); $result = $search->getResultSetBuilder()->buildResultSet($response, $search->getQuery());
But what I actually wanted to do would be something like this:
$result = $this->indexType->search($query, $options, Request::POST);
Thanks for the details. I'm ok with adding this option. Can you open a PR?
In case the proxy is under your control, I think the proxy should be configured accordingly. But I can see the issue in case the proxy is not under your control.
I wonder what the proxy is that does not support it?