Skip to content

Cache only selected result in a search #10

@jghibiki

Description

@jghibiki

I've noticed that when we make a search, sonicflow appears to be caching every item returned by grooveshark. I think that only caching the result selected for play by the user would make more effective use of the cache storage, but in addition would result in many less-relevant items from being cached to sonicflow (and hopefully making better use of the updated search algorithm more below on this). This idea follows two assumptions,

  1. Songs that have been played before should be considered "more relevant" as search results than those not explicitly played. Also, a song that has been played at least once, has a higher chance of being played again than never being played again.
  2. Other search results returned by grooveshark may be relevant but not notable or confirm-ably relevant to be worth caching on the local server.

Impact in combination with the search algorithm:

I have noticed that the new search algorithm produces notably more relevant results, but almost only when going to grooveshark for results. When searching the local cache, the results seem relevant only down to a single word or two with the truly relevant results hidden in a long list of fakes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions