When a an index is on a Boolean variable, query optimization does not handle the legel grammatical construction '(each.booleanVar) not'. For example, this expression results in an invalid query operator error:
'(each.emailed) not'
Change the path term that will resolve into a boolean to be a comparision, for example:
'(each.emailed == false) not'
Last updated: