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

Attempt to sort search results by relevance when multiple sources are enabled #1994

Open
TheDeviantCrafter opened this issue Feb 27, 2025 · 0 comments
Labels
Android Core Enhancement New feature or request QoL Quality of life improvement

Comments

@TheDeviantCrafter
Copy link

TheDeviantCrafter commented Feb 27, 2025

Use Cases

When multiple sources are enabled, Grayjay seems to search each platform and weave the results together. With Youtube and Soundcloud enabled for example the results alternate between videos and songs.

This is great when searching for music, but not when searching for something that's only on Youtube. Hiding one source for just that search or completely in that source's settings isn't a perfect workaround.

Proposal

There's no reliable way for Grayjay to discard irrelevant search results, so I propose the next best thing.

For each page, sort the results by relevance clientside. If the results from one source match more keywords, bring those to the top of the page and clump the rest towards the bottom. Repeat for each future page if the user scrolls down.

This does mean that the second half of the page will be lower quality, but most users probably click one of the top 5 results anyway so I don't think this is a huge problem. Down-ranking less relevant results instead of hiding them means that Grayjay won't hide good results if its relevance algorithm is wrong.

References

No response

@TheDeviantCrafter TheDeviantCrafter added the Enhancement New feature or request label Feb 27, 2025
@Zvonimir-FUTO Zvonimir-FUTO added Core QoL Quality of life improvement Android labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Core Enhancement New feature or request QoL Quality of life improvement
Projects
None yet
Development

No branches or pull requests

2 participants