Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help: Extend search operator examples to document negation.
Tim Abbott87295dbb8a7f
diff --git a/templates/zerver/help/search-for-messages.md b/templates/zerver/help/search-for-messages.mdindex 70b05e2a48a..88d53ec89c2 100644--- a/templates/zerver/help/search-for-messages.md+++ b/templates/zerver/help/search-for-messages.md@@ -5,13 +5,15 @@ the search bar at the top of the screen.## Example-* `stream:design has:link is:starred new logo`+* `stream:design has:link -is:starred new logo`-Searches for messages in `#design` that have a link, that you starred, and-that have the words `new` and `logo`.+Searches for messages in `#design` that have a link, that you haven't+starred, and that contain the words `new` and `logo`.The permalink for that search (web only) will look something like-`https://your-zulip-url/#narrow/stream/123-design/has/link/is/starred/search/new.20logo`.+this:++`https://your-zulip-url/#narrow/stream/123-design/has/link/-is/starred/search/new.20logo`.## List of operators@@ -46,6 +48,13 @@ Here is the **full list of search operators**.* `group-pm-with:[email protected],[email protected]`: Search all groupprivate messages that include Ada and Bob.+### Excluding messages++Zulip's search operators can be negated, to exclude messages matching+the rule. For example, `stream:design -is:resolved -has:image` will+match all messages that don't contain an image and were sent to+unresolved topics in the `#design` stream.+## Searching shared historyZulip's [stream permissions](/help/stream-permissions) model allows