Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Document the date search operator.

apoorvafee17a7d7c4b
diff --git a/starlight_help/src/content/docs/scroll-to-date.mdx b/starlight_help/src/content/docs/scroll-to-date.mdx
index 7d7a098c4b6..4c5e9a42dce 100644
--- a/starlight_help/src/content/docs/scroll-to-date.mdx
+++ b/starlight_help/src/content/docs/scroll-to-date.mdx
@@ -13,6 +13,11 @@ viewing [a conversation](/help/reading-conversations), [a channel
feed](/help/channel-feed), [search results](/help/search-for-messages), or
anything else. Suggested dates help you quickly find key moments.
+<ZulipTip>
+ You can also search for messages [sent around a particular
+ date](/help/search-for-messages#search-by-date).
+</ZulipTip>
+
<Tabs>
<TabItem label="Desktop/Web">
1. Click on a date on the right side of a message recipient bar or a date
diff --git a/starlight_help/src/content/docs/search-for-messages.mdx b/starlight_help/src/content/docs/search-for-messages.mdx
index 256adcbbce0..901d686bd81 100644
--- a/starlight_help/src/content/docs/search-for-messages.mdx
+++ b/starlight_help/src/content/docs/search-for-messages.mdx
@@ -7,6 +7,7 @@ import {Steps, TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro";
import KeyboardTip from "../../components/KeyboardTip.astro";
import NavigationSteps from "../../components/NavigationSteps.astro";
+import ZulipNote from "../../components/ZulipNote.astro";
import ZulipTip from "../../components/ZulipTip.astro";
import MobileMenu from "../include/_MobileMenu.mdx";
@@ -171,15 +172,31 @@ You can use the search bar to navigate to a message by its ID.
* `id:12345`: Show only message `12345`.
* `channel:design near:1` Show the oldest messages in the **#design** channel.
+### Search by date
+
+Sometimes you know approximately when the message you are looking for was sent.
+You can focus your search so results are scrolled to a specified date.
+
+* `date:2025-01-01`: Show messages sent around January 1, 2025.
+* `channel:design date:2025-01-01`: Show messages in the **#design** channel
+ sent around January 1, 2025.
+* `sender:Elena García date:2025-01-01`: Show messages sent by Elena around
+ January 1, 2025.
+
### Exclude filters
-All of Zulip's search filters can be negated to **exclude** messages matching
+Most of Zulip's search filters can be negated to **exclude** messages matching
the specified rule. For example:
* `channel:design -is:resolved -has:image`: Search messages in [unresolved
topics](/help/resolve-a-topic) in the **#design** channel that don't contain
images.
+<ZulipNote>
+ **Note**: Negating a date or message ID to exclude messages in a search is
+ not possible.
+</ZulipNote>
+
## Linking to search results
When you search Zulip, the URL shown in the address bar of the Zulip web app is a
@@ -204,3 +221,4 @@ A summary of the search filters above is available in the Zulip app.
* [Filter users](/help/user-list#filter-users)
* [Link to a message or
conversation](/help/link-to-a-message-or-conversation#link-to-zulip-from-anywhere)
+* [Scroll to date](/help/scroll-to-date)