REST services to remove facets and search terms from queries