core: Add examples that shows that search is AND

This commit is contained in:
Thomas Adamcik 2015-04-23 21:55:03 +02:00
parent b80bf615b5
commit 58641100ce

View File

@ -275,6 +275,9 @@ class LibraryController(object):
# "file:///media/music" and "spotify:"
search({'any': ['a']}, uris=['file:///media/music', 'spotify:'])
# Returns results matching artist 'xyz' and 'abc' in any backend
search({'artist': ['xyz', 'abc']})
:param query: one or more queries to search for
:type query: dict
:param uris: zero or more URI roots to limit the search to