Add test for auto-facet search
Refactor to automatically split query into facets