Exists query> The exists query will match documents with a non-NULL value in the specified field.> query=published_at:> This query can be combined with a Not Query to find fields missing a value, e.g. -published_at:
Not sure if there’s another way to accomplish this…
It looks like you already tried this query, but had different results. If possible, can you share a product id with no tags that shows up when doing this query so I can investigate?
Thanks for the extra info. I see what you mean. I was also able to replicate on my shop.
I imagine the query I shared is returning products with no tags as they are stored as a blank string, rather than a null value. In any case, I’ve brought this up as an issue to our engineering team, as I can’t find a way to query all products with at least one tag. I’ll drop another reply here once I have an update on that issue.
Any update on this? Recently came across this issue as well and basically have no way to highlight a product with 1 or more tags as it ends up showing products with no tags: