Added facets and facet selection functionality to the search method.