Use redis sets instead of lists.
So we can use redis set intersection instead of custom logic to figure out matches.
Also, sort results such that keywords of metric names with exact prefix match are listed first.