Changed return type of search
to Map<String, Float>