@protocol.commands.add('searchadd')
def searchadd(context, *args):
    """
    *musicpd.org, music database section:*

        ``searchadd {TYPE} {WHAT} [...]``

        Searches for any song that contains ``WHAT`` in tag ``TYPE`` and adds
        them to current playlist.

        Parameters have the same meaning as for ``find``, except that search is
        not case sensitive.
    """
    try:
        query = _query_from_mpd_search_parameters(args, _SEARCH_MAPPING)
    except __HOLE__:
        return

    results = context.core.library.search(query).get()

    with deprecation.ignore('core.tracklist.add:tracks_arg'):
        # TODO: for now just use tracks as other wise we have to lookup the
        # tracks we just got from the search.
        context.core.tracklist.add(_get_tracks(results)).get()
dataset/ETHPy150Open mopidy/mopidy/mopidy/mpd/protocol/music_db.py/searchadd