-
Notifications
You must be signed in to change notification settings - Fork 12
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
playlist filter is too strict #303
Comments
also "4minute crazy" doesn't find the song you'd expect it to because search only matches the full string against artist and title fields separately. but 4minute should match an artist and crazy should match a title. a |
MongoDB's full text search does not work great for this in my tests. If you type half a word it doesn't match anything. We probably need either something custom, or a separate search-optimized database. |
does this basically mean fuzzy searching will be a thing? that would be awesome! |
Depends on what level of fuzziness you're looking for 😄 I'm looking at something like Sonic. It will match results even when there are some typos, but it's not the type of fuzzy search you get in tools like fzf. e; oh … this describes an approach that might yield good results with mongodb only: https://medium.com/xeneta/fuzzy-search-with-mongodb-and-python-57103928ee5d |
Searching for 'royks' doesn't match 'röyksopp' and 'nu'est' doesn't match 'nu’est' (different quote character).
maybe mongo has an option for this. else we need a separate field on playlist items,
searchValue
or something, that strips punctuation and removes diacritics or does some other form of normalization. there's almost certainly modules for that!A possible direction here is creating a text index:
The text was updated successfully, but these errors were encountered: