Skip to content

Allow providing additional parameters with a search#57

Merged
JulianVennen merged 1 commit into
masterfrom
search-parameters
May 29, 2026
Merged

Allow providing additional parameters with a search#57
JulianVennen merged 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.

@JulianVennen JulianVennen merged commit 81ac49e into master May 29, 2026
4 checks passed
@JulianVennen JulianVennen deleted the search-parameters branch May 29, 2026 09:24
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.

4 participants