Skip to content

Please add the possibility to change the request method #1441

@stefpe

Description

@stefpe

Request::GET,

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions