title: Extract facets based on tags in Query Builder
body: <p>I am trying to extract the facets using Query builder in AEM. My query is as below:</p>
  
  <pre><code>1_group.p.or=true
  1_group.1_type=cq:Page
  1_group.2_type=dam:Asset
  2_group.p.or=true
  2_group.1_path=/content
  2_group.2_path=/content/dam
  3_group.p.or=true
  3_group.1_tagid=/etc/tags/geometrixx-outdoors/activity/biking
  3_group.1_tagid.property=@jcr:content/cq:tags
  3_group.2_tagid=/etc/tags/geometrixx-outdoors/activity/biking
  3_group.2_tagid.property=@jcr:content/metadata/cq:tags
  fulltext=text
  p.limit=-1
  </code></pre>
  
  <p>The Query Builder returns the facets based on the type (cq:page, dam:Asset) for the above query, but I need the facets based on the tags. Is there any way, I can explicitly provide the parameter on which the facets are required. Also, please suggest if we can optimize this query to achieve the same.</p>
  
  <p>Thanks,
  Shailesh</p>