riff search and ranking