Skip to content

Allow providing additional parameters with a search#57

Open
JulianVennen wants to merge 1 commit into
masterfrom
search-parameters
Open

Allow providing additional parameters with a search#57
JulianVennen wants to merge 1 commit into
masterfrom
search-parameters

Conversation

@JulianVennen
Copy link
Copy Markdown
Member

With this PR, you can add additional query parameters to the search. For opensearch these are documented here: https://docs.opensearch.org/latest/api-reference/search-apis/search/

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for passing additional query parameters to OpenSearch search requests through the existing Search object.

Changes:

  • Adds parameter storage and retrieval to Search.
  • Adds OpenSearch URL construction with encoded query parameters.
  • Applies the additional parameters when executing _search requests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Search/Search.php Extends the search value object to carry additional query parameters.
src/Driver/OpenSearch/OpenSearch.php Appends search parameters to OpenSearch _search request URLs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants