Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search: Lax separator matching when filtering results #21370

Conversation

ducalex
Copy link
Contributor

@ducalex ducalex commented Sep 20, 2024

This PR updates search result filtering behavior to be more intuitive.

Any separator ( _ - .) will now match any other separator when filtering search results.

Example: Type "live server" in filter. Currently it would only match "live server". Similarly, if you type "live.server" it will only match "live.server" and not "live server" even though the user likely wants to see both.

With this update any separator now matches any other separator; a space now matches . - _, an underscore also matches a space or a dash, etc.

This means that a filter of "live server" will now show "live.server" in the results and vice-versa.

Note that this does not affect regex search, only regular wildcard search.

This is a lot more intuitive in my opinion!

image

Any separator will now match any other separator when filtering search results.

Example: Type "live server" in filter. Currently it would only match "live server". Consequently, if you type "live.server" it will only match "live.server" and not "live server" even though the user likely wants to see both.

With this update any separator now matches any other separator; A space now matches `.` `-` `_`, an underscore also matches a space and a dash, etcetera.

This means that a filter of "live server" will now show "live.server" in the results.

This is a lot more intuitive in my opinion.
@ducalex ducalex force-pushed the ducalex/ignore-search-filter-separator branch from 80131ee to 08dae5f Compare September 20, 2024 17:46
@thalieht thalieht added Search engine Issues related to the search engine/search plugins functionality GUI GUI-related issues/changes labels Sep 20, 2024
@glassez
Copy link
Member

glassez commented Sep 23, 2024

IMO, if such behavior is acceptable to be approved, it at least should be optional (someone may not like it).

Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Nov 23, 2024
Copy link

github-actions bot commented Dec 1, 2024

This PR was closed because it has been stalled for some time with no activity.

@github-actions github-actions bot closed this Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI GUI-related issues/changes Search engine Issues related to the search engine/search plugins functionality Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants