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

Improved search and its docs #193

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

allerter
Copy link
Collaborator

@allerter allerter commented Mar 7, 2021

  • _get_item_from_search_response includes all items in the hits list as long as their type matches. But this can lead to false matches. For example, the user could be searching for a song. The method would include songs that have similarities in their lyrics to the search term. But what we actually want is songs that have a similar title. So now the method takes the index key into account as well.
  • Made clear in search_album, search_artist and search_song methods that they're only convenience methods and the user can do what the method does themselves.
  • Improved the meaning of the type_id (e.g. song_id`) parameter in the convenience methods.

If index is not matched, hits will include items that might match the type, but are from irrelevant sections. For example searching for a song will include lyrics matches, but those are irrelevant
- Make clear that search_album, search_artist and search_song are convenience methods
- Improve docs of type_id parameter
@allerter allerter added this to the 3.1.0 milestone Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant