Search Twitter for keywords: how X reads quotes, OR, minus and brackets

How do you search Twitter for keywords? Use X's search box: quotes lock a phrase, OR accepts either word, a minus sign drops one.

Share
Search Twitter for keywords: how X reads quotes, OR, minus and brackets

How do you search Twitter for keywords and get back the posts you meant, rather than every post that shares a word with them?

The search box is the whole tool; the skill is in what you type into it.

To search Twitter for keywords, enter them in X's search box, which you'll find at the top of x.com pages and under the app's Explore tab, then run the search.

X then returns posts that contain every word you typed, in any position. Quotation marks make the words one exact phrase, OR between two words accepts either, and a minus sign removes posts containing the word after it.

Below: the syntax in one table, the bracket rule that trips up OR searches, how to find the posts that drew a reaction, and why some matches never show up.

X's help center gives the search steps for web, iOS and Android separately, and they line up closely. On any of them, a keyword search takes four moves:

  1. Open the search box. On x.com it's the box at the top of the page; in the app, tap the Explore tab first.
  2. Type your keywords, adding the symbols from the table below for exact phrases, alternatives or exclusions.
  3. Press Enter on the web, or tap Search in the app.
  4. Pick Top for the posts X ranks as most relevant, or Latest for every match with the newest first.

Step two is where the results are decided.

The box reads the symbols as instructions, which is how the same four moves can return a flood of loose matches or a short, exact list.

The results page adds a few quick filters on top of the query. On x.com, Search filters can narrow results to accounts you follow or to posts from near you, and the filter icon in the app's search bar offers the same two choices.

The other tabs sort the same keywords by type:

  • People lists accounts that match your search.
  • Media gathers popular images and videos related to it.
  • Lists shows curated lists of accounts connected to it.

Keyword search syntax on X, in one table

X's own description of its search system says it supports around 50 custom operators. A keyword search leans on a handful of them:

Type thisTo get posts thatExample
Two words with a spacecontain both words, anywhere in the postremote work
Words inside quotation markscontain that exact phrase"remote work"
OR between words, in capitalscontain either wordremote OR hybrid
A minus sign before a worddon't contain that wordremote -jobs
Brackets around wordskeep a group together(remote OR hybrid) policy
# before a worduse that hashtag#remotework
from: before a usernamewere posted by that accountfrom:username remote

The first four rows mirror the Words section of X's help for advanced search, which describes the same matches in plain language. The rest come from X's list of search operators for developers, which uses the same symbols.

Write OR in capital letters, the way X writes it in its own examples.

And give brackets more attention than their size suggests, because they decide how OR behaves.

Why does an OR search on X return posts you didn't ask for?

Because words joined by spaces are combined before OR is applied. X's developer documentation lays out the order of operations in search queries with its own example: apple OR iphone ipad is read as apple OR (iphone ipad).

So every post that says "apple" qualifies, whether or not it mentions an iPad.

The same thing happens in everyday searches. refund OR return policy returns every post containing "refund", plus the posts that contain both "return" and "policy".

If you meant a refund policy or a return policy, the brackets have to say so: (refund OR return) policy.

Whenever a query mixes OR with other words, put brackets around the OR group.

The same page adds a rule for exclusions: don't put a minus sign in front of a bracketed group. Instead of skiing -(snow OR day OR noschool), X's documentation writes skiing -snow -day -noschool, with a minus sign on each word.

I bracket every OR group out of habit, even when the query would read correctly without it. Two keystrokes cost less than a search that quietly answers a different question.

Should you search the hashtag or the plain word on X?

Search both, joined by OR, unless you only want posts that used the tag.

In X's list of search operators, # is a separate operator that matches the tag exactly, and a plain keyword is matched against the text of the post.

The two catch different conversations. A campaign hashtag gathers the posts written for the campaign, while the plain word picks up people discussing the same subject without tagging it.

#remotework OR "remote work" covers both in one search, and the brackets rule above applies as soon as you add another word.

The fastest way to sharpen a keyword search is usually to subtract. Three habits keep the noise down:

  • Exclude every form of an unwanted word. X's operator list calls keyword matching a tokenized match, so treat "crypto" and "cryptocurrency" as separate words: marketing -crypto -cryptocurrency.
  • Leave out your own account when you check what others say. "your brand" -from:yourhandle keeps your own posts out of the results.
  • Name the giveaway chatter. Contest posts can crowd a busy keyword, and -giveaway removes the ones that use the word.

X handles part of this on its own.

Its page on search rules and restrictions says X filters results for quality posts and accounts. Accounts that repeatedly post near-duplicate updates to enter contests may be filtered from search, and the minus signs deal with what gets through.

How to find the keyword posts on X that drew a reaction

Add an engagement floor to the query. X's developer documentation notes that X's web search calls its like and repost minimums min_faves: and min_retweets:, so "remote work" min_faves:500 returns only matching posts with at least 500 likes.

A floor is firmer than the Top tab. Top ranks posts on a mix of scores that goes well beyond likes, as the next section shows, so a busy post can sit below a quieter one that X judges more relevant to you. A like floor applies the same cutoff to every post.

Top is X's judgment of relevance; a like floor is a fixed bar every post has to clear.

Start with a high number and lower it until enough posts come back. The right floor depends on how busy the keyword is, so a niche term and a trending one call for floors that sit far apart.

What X does to your keywords before showing results

Your query passes through several steps inside X before any post appears, and some of them change what you see. X's page on how search works walks through them:

  • It looks for likely typos and can add a corrected search term to your query.
  • It applies the operators you typed, from quotation marks to from:.
  • For Top, it collects candidate posts partly by your location and interests, then ranks them on engagement, health and relevance.
  • A visibility filter removes posts from blocked, protected and deactivated accounts before results reach you.

The typo step explains a common surprise. A brand name with an unusual spelling can pull in posts that use the corrected spelling instead.

Quotation marks around the name, read under Latest, keep the search closest to what you typed.

X publishes a diagram of this system. Its Search Assistance Service, which handles corrections, and its Visibility Filtering stage both feed the search mixer that assembles your results.

Tweet search

Why some matching posts never appear on Twitter

Even a well-built query can come back short. Three limits account for most gaps:

  • Top is selective. X describes Top as a filtered search focused on the more relevant and more popular posts, while Latest lists matches in the order they were published.
  • Safe search hides some posts. With it on, X leaves out posts it flags as potentially sensitive, plus anything from accounts you've muted or blocked, in both tabs. The switch lives in Search settings on x.com.
  • Protected posts stay private. According to X's page on who can see protected posts, they turn up in X search for nobody but the account and its approved followers.

When a post you know exists still won't show, search a distinctive phrase from it in quotation marks and read Latest. If it's missing there too, one of these limits is the likely reason, unless the post no longer exists.

Start your X keyword search with one quoted phrase

You don't need X Premium or any extra app for any of this. Everything above runs in the free search box, in a browser and in the app alike.

The advanced search form builds the same queries from labeled fields if you'd rather not type symbols, though X documents it for x.com only.

So start small. Put the phrase you're surest of in quotation marks, add one alternative with OR inside brackets and one exclusion with a minus sign, then read the results under Latest. Change one piece at a time until the posts on screen are the ones you meant.

A query that works is worth keeping: the same line of text runs again whenever you want fresh results.

Keyword search on X: questions that come up after the first try

Can X alert you when someone posts your keyword?

Not through its regular notifications, which X builds around your own account: mentions, replies, reposts, likes and new followers.

X Pro search columns can alert you with a sound or desktop notification, and X lists X Pro among its Premium+ features. Below that tier, checking a keyword means running the search again yourself.

Can you search X for a stock ticker?

Yes. Put a dollar sign in front of the ticker, as in $AAPL, and X matches it as a cashtag, the way it matches a word after # as a hashtag. X's list of search operators for developers gives $ its own entry, next to # and @.

Can you search X for positive or negative posts about a keyword?

X's help describes one trick for X Pro: follow a topic with a happy or sad emoticon, as in San Francisco :), to find posts about it in a positive or negative light.

That help covers X Pro search columns, which sit in Premium+, and X's instructions for the regular search box list no sentiment filter.

Can you limit a keyword search to one language?

Yes. Search filters on an x.com results page include a language option, and the advanced search form has its own language menu.

X also detects the language of your query and gives priority to posts written in it.