split map_search_results in two and added a test for get_facets
this way the contract can be phrased more precisely. the two parts of the function had no overlap anyway.