| Previous | Next |
| IDS_MON_SELECT_STAR | IDS_MON_CANNOT_CONVERT |
IDS_MON_OR_NOT
IDS_MON_OR_NOT is a Boolean grammar restriction in content-search conditions. Windows Search allows the unary NOT operator only with AND; the documented CONTAINS grammar explicitly rejects OR NOT and a standalone NOT condition.
Rewrite the Boolean structure explicitly
- Log the final
CONTAINScondition after UI filters have been combined. - Use
A AND NOT Bfor exclusion and group terms with parentheses where operator precedence matters. - Do not mechanically translate a generic Boolean AST to Windows Search without enforcing the provider’s NOT placement rule.
The same restriction is documented at both the WHERE search-condition level and inside CONTAINS: NOT is used after AND. This means an application that accepts arbitrary user Boolean syntax needs a provider-specific normalization or validation stage. Reordering terms without preserving logic can change results, so the query should be rebuilt from the intended Boolean expression rather than patched as text.
WHERE Boolean rules · CONTAINS Boolean rules · Parser messages
Looking for a different code? Search another status or error code.