The following table outlines the Boolean search operators that can be used to define a KQL query using a logical connector between two keywords:
Connector |
Example |
Description |
AND |
Subject:sales AND Subject:report Subject:(sales AND report) |
These examples search for items with both sales and report in the subject line |
OR |
Subject:sales OR Subject:report Subject:(sales OR report) |
These examples search for items with the word sales or report in the subject line |
NOT |
NOT Body:sales Body:(NOT sales) |
These examples search for items without the word sales in the body |