>At this case with recommending not to use
$ for search, maybe
AT (or better
ATC) may be better.
Well, basically, as long as you can have a fully optimizable query, it will work. This assumes of course you need full optimization for your application and your requests.
So, if you can create a tag which will match your left side of the condition, you're ok.