We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To make a raw HTTP request one has to write this.
$response = $client->request('GET', '/shakespeare/_search', [ 'body' => [ 'query' => [ 'match' => [ 'text_entry' => 'long live king' ] ] ] ]);
I'd like a higher level DSL so I could write this:
$response = $client->http()->get('/shakespeare/_search', [ 'body' => [ 'query' => [ 'match' => [ 'text_entry' => 'long live king' ] ] ] ]);
This would be consistent with other clients (see https://code.dblock.org/2023/10/16/making-raw-json-rest-requests-to-opensearch.html) and make it a bit easier on the user.
Let's make sure to have a full working sample along the lines of https://github.com/dblock/opensearch-php-client-demo/blob/main/json.php and a user guide.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem?
To make a raw HTTP request one has to write this.
What solution would you like?
I'd like a higher level DSL so I could write this:
This would be consistent with other clients (see https://code.dblock.org/2023/10/16/making-raw-json-rest-requests-to-opensearch.html) and make it a bit easier on the user.
Let's make sure to have a full working sample along the lines of https://github.com/dblock/opensearch-php-client-demo/blob/main/json.php and a user guide.
The text was updated successfully, but these errors were encountered: