Thanks Kautuk.I have already gone through all the above, I can easily exclude the specific tag in the query but if you use tagid, it considers children tags and backlinks in the query, I couldn't exclude using tagid predicate.2_tagid.property=jcr:content/cq:tags 2_tagid.2_value=structure:medicines2_...