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

Media App: Handling Spaces in Search #1474

Open
zcolah opened this issue Oct 31, 2022 · 1 comment · May be fixed by #1506
Open

Media App: Handling Spaces in Search #1474

zcolah opened this issue Oct 31, 2022 · 1 comment · May be fixed by #1506
Assignees

Comments

@zcolah
Copy link

zcolah commented Oct 31, 2022

Right now if a user searches "fried rice", we show no results, despite there being a file by that name. This is because the file is actually called "fried-rice".

Solution:
Could we do a logic workaround where if a user puts a space we put a "-" in our query?

Basically make https://8-ecbcaf83fc-h333c8.manager.zesty.io/media/search?term=fried%20rice
to https://8-ecbcaf83fc-h333c8.manager.zesty.io/media/search?term=fried-rice

Also please note that while we add the "-" to the query we do not want to add it to the search box itself.

@agalin920 agalin920 self-assigned this Nov 1, 2022
@shrunyan
Copy link
Contributor

shrunyan commented Nov 3, 2022

We would not want to add characters to the term, as what if it's separated by an underscore, space, hyphen, period, etc. The solution to this request is "fuzzy" search.

A fuzzy search query searches for character sequences that are not only the same but similar to the query term
https://www.ibm.com/docs/en/db2/11.5?topic=methods-fuzzy-search

@agalin920 agalin920 linked a pull request Nov 7, 2022 that will close this issue
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 a pull request may close this issue.

3 participants