Fulltextsearch module doesn't yet support facets very well, so I've just copied this function here so we have access to the results. I'd prefer to modify it minimally so we can eventually get rid of it once they add faceting or hooks to get directly at the returned response.