Search more relevant results at first in settings
Checklist
- [X] I am able to reproduce the bug with the latest version.
- [X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
- [X] I have read the FAQ and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
Affected version
0.25.1
Steps to reproduce the bug
- click "Settings" on the left panel
- click search button on the right top
- input some words, such as "download f"
- and we can see that the search results may not be the best
Expected behavior
I want to get a better search results, but actual not

Actual behavior
No response
Screenshots/Screen recordings
this is before

this is after improvement, I change the way to get the score, think about n-grams, Jaccard similarity and edit distance , I think it works for the search function

Logs
No response
Affected Android/Custom ROM version
android x
Affected device model
oppo
Additional information
I am android developer, and I wish I can help NewPipe more better, if my commit can merge, that will be my first contribution for open source project
The existing code works as expected. However, you are willing to change current behavior of the app. So, I am labeling this issue as feature request, not bug.
Please wait for a few days before opening a PR. Keep an eye on https://github.com/TeamNewPipe/NewPipe/issues/10003 for the latest details.
I also assigned this issue to you so that others can know that this issue is already being worked on by someone else.
The existing code works as expected. However, you are willing to change current behavior of the app. So, I am labeling this issue as
feature request, notbug.Please wait for a few days before opening a PR. Keep an eye on #10003 for the latest details.
I also assigned this issue to you so that others can know that this issue is already being worked on by someone else.
got it, thank you~
It seems that if a search term yields no results (like "xyz" or other nonsense), some random results are being returned instead of nothing.