Slack Search Filters and Modifiers

Basic keyword search in Slack is fast, but search modifiers make it surgical. Instead of scrolling through hundreds of results, modifiers let you pinpoint exactly what you need — a file from last Tuesday, a message from your manager, or a link shared in a specific channel.

What Search Modifiers Are

A search modifier is a special word or phrase you add to your search query. It narrows results by sender, channel, date, file type, or message content. Modifiers follow a pattern: modifier:value.

BASIC SEARCH:          report
FILTERED SEARCH:       report from:@alice in:#finance after:2024-09-01

The filtered search returns only messages containing "report" sent by Alice in #finance after September 1, 2024. Without modifiers, you would sift through every workspace message containing that word.

Full Modifier Reference

MODIFIER            EXAMPLE                    WHAT IT DOES
─────────────────   ────────────────────────   ─────────────────────────────
from:@person        from:@alice                Messages sent by Alice
in:#channel         in:#marketing              Messages in #marketing
to:@person          to:@bob                    Messages sent to Bob (DMs)
before:date         before:2024-12-31          Messages before Dec 31 2024
after:date          after:2024-01-01           Messages after Jan 1 2024
on:date             on:2024-11-15              Messages on Nov 15 2024
has:link            has:link                   Messages containing a URL
has:reaction        has:reaction               Messages with any emoji reaction
has:star            has:star                   Your starred/saved messages
is:thread           is:thread                  Thread replies only
is:dm               is:dm                      Direct messages only

Combining Multiple Modifiers

You can chain modifiers together in a single search. Slack applies all of them at once.

EXAMPLE COMBINATIONS

  from:@bob in:#dev-team deploy
  → Bob's messages in #dev-team containing "deploy"

  has:link after:2024-09-01 in:#general
  → Links shared in #general after September 1 2024

  from:@manager before:2024-10-01 budget
  → Messages from your manager before Oct 2024 about budget

  is:dm from:@carol
  → Direct messages between you and Carol

Searching by Date Format

Slack accepts dates in YYYY-MM-DD format for the before:, after:, and on: modifiers. You can also use natural language shortcuts:

NATURAL LANGUAGE DATES

  after:yesterday
  before:today
  on:monday
  after:last-week
  before:2024-12-31

Using the Filter Panel Instead of Typing Modifiers

If you prefer not to memorize modifier syntax, use the filter panel instead. After typing a basic search, click the Filters button in the search results panel. A dropdown lets you select:

  • Date range (custom or preset)
  • Sent by (choose a person)
  • In (choose a channel)
  • Message type (messages, files, channels, people)

The filter panel builds the modifier query automatically. You see the same results as if you had typed the modifiers manually.

Searching for Exact Phrases

Wrap a phrase in quotation marks to search for that exact string of words in that exact order.

"budget approval" → finds only messages containing that exact phrase
budget approval   → finds messages with "budget" AND "approval" anywhere

Exact phrase search is useful for finding a specific decision that was worded a particular way, such as "launch confirmed" or "project on hold."

Excluding Words with the Minus Sign

Put a minus sign (-) directly before a word to exclude results containing that word.

report -draft
→ Messages about "report" that do NOT contain "draft"

Practical Search Scenarios

SCENARIO                              SEARCH QUERY
──────────────────────────────────    ─────────────────────────────────────
Find a design file Alice shared       from:@alice has:link in:#design
Find who approved the Q3 budget       "Q3 budget" approved
Find a link shared last month         has:link after:2024-10-01
                                      before:2024-10-31
Find messages you starred             has:star project launch
Find a DM about a contract            is:dm contract

Saving Searches

Slack does not have a built-in "saved searches" feature, but you can re-run a modifier search instantly by clicking the search bar — Slack shows your recent searches as a dropdown. Click any past search to run it again without retyping.

Key Takeaways

  • Search modifiers follow the pattern modifier:value and narrow results precisely.
  • Combine multiple modifiers in one query: from:@alice in:#marketing budget.
  • Wrap exact phrases in quotes to find that specific wording.
  • Use the Filters panel as a visual alternative to typing modifier syntax.
  • Use a minus sign before a word to exclude it from results.

Leave a Comment

Your email address will not be published. Required fields are marked *