Filtered search when there are items with more than one match

Fixed a bug on the tags match @ the search, now all of the matches are
considered when ordering the results.