Refactor the search endpoint to allow for customisation#10
Merged
Conversation
Collaborator
|
@alvinsw Can you update so the linting tests pass. You can run the tests with pnpm test:ui |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
johnf
reviewed
Mar 18, 2026
README.md
Outdated
|
|
||
| ### Query Builder (Optional) | ||
| Use the `queryBuilderClass` optional parameter to specify a custom builder class. | ||
| If not apecified, the default `OpensearchQueryBuilder` is used. |
Member
Author
|
@johnf I don't have time to fix the errors from the coverage checks. Can you you help with that or just remove the coverage checks for now. |
Collaborator
|
@alvinsw Let me know when you've made the other changes and I'll take a look |
github-actions bot
pushed a commit
that referenced
this pull request
Mar 18, 2026
## [2.1.0](v2.0.4...v2.1.0) (2026-03-18) ### Features * refactor the search endpoint to allow for customisation ([#10](#10)) ([66c9ac8](66c9ac8))
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes required to allow user to customise opensearch search query and result:
Extract the codes for building the opensearch search query into an extendable class.
Added queryBuilderClass and queryBuilderOptions to the main Options.