ZCU-PUB/Partial match for community/collection search#1232
Open
Paurikova2 wants to merge 2 commits intocustomer/zcu-pubfrom
Open
ZCU-PUB/Partial match for community/collection search#1232Paurikova2 wants to merge 2 commits intocustomer/zcu-pubfrom
Paurikova2 wants to merge 2 commits intocustomer/zcu-pubfrom
Conversation
Collaborator
Author
|
@milanmajchrak If we want to include this PR, we should also offer it to Vanilla and cherry-pick it for other customers (mainly dtq-dev). |
There was a problem hiding this comment.
Pull request overview
This PR updates the DSO selector’s search behavior to support partial/prefix matching, primarily to improve discoverability of Communities/Collections when users type short or partial queries.
Changes:
- Adds query preprocessing to rewrite non-empty user input into a prefix/wildcard query.
- For Community/Collection searches, rewrites queries to a
dc.title:<query>*-style fielded prefix query. - Passes the rewritten query into
PaginatedSearchOptionsinstead of the raw input.
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.
Problem description
The DSO selector search only matched whole words, preventing users from finding communities/collections with partial text input (e.g., typing "t" wouldn't find "test" community).
Solution
Implemented partial prefix matching for communities and collections using dc.title:query* search format, enabling single character and partial text searches to find relevant results from the beginning of titles.
Manual Testing (if applicable)
Copilot review