QA-5312 : do not rewrite the query if it contains facets