make the similarity argument to be {a => {b => c} }, fix the searchers cache key to be sorted