convert a keyword search into a faceted term search

* provided we can convert the search keyword into an authoritative facet term
* if more than one facet is matched, we'll use the first one with the highest priority configured

related to these pull request: https://github.com/GigaOM/gigaom/pull/5114 and https://github.com/misterbisson/scriblio-authority/pull/76

see https://github.com/GigaOM/legacy-pro/issues/3995
this is necessary because once the terms are converted to facets, they lose their ordering. (a facet contains an associative array of facet names to another associative array of term names => term objects.)