Skip to content

ZCU-PUB/Partial match for community/collection search#1232

Open
Paurikova2 wants to merge 2 commits intocustomer/zcu-pubfrom
zcu-pub/partial-word-match-browsing
Open

ZCU-PUB/Partial match for community/collection search#1232
Paurikova2 wants to merge 2 commits intocustomer/zcu-pubfrom
zcu-pub/partial-word-match-browsing

Conversation

@Paurikova2
Copy link
Collaborator

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

  • Requested review from Copilot

@Paurikova2
Copy link
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).

@Paurikova2 Paurikova2 changed the title added searching by query ZCU-PUB/Partial match for community/collection search Mar 4, 2026
Copy link

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 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 PaginatedSearchOptions instead of the raw input.

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