Boolean operators

Good data starts with an accurate Query.

Our Query engine is incredibly powerful and ensures you’re only analyzing relevant data. Users have two options for creating Queries:

  • Our simple Query Wizard makes Query writing simple, even for beginner users. Simply answer a series of questions about the brand you want to track and it does the hard work for you.
  • For those wanting to analyze broader topics or specific subsets of conversation, there’s the option to build Queries from scratch using Boolean operators.

We have the widest range of Boolean operators of any platform on the market, allowing you to get the most refined, accurate, useful data possible.

Our operators allow you to do everything from tracking hashtags and @mentions, to restricting by specific locations or capitalisation. They make it super easy to track even the most tricky brand names or topics.

Here’s a list of our supported operators – all 23 of them – along with details of how they help:

Operator

Example

Description

“” (quotes)

apple juice

Will find mentions of the exact phrase ‘apple juice’ on any webpage

The AND operator

apple AND juice

Will find mentions of ‘apple’ and ‘juice’ on the same webpage. Must be capitalized

The OR operator

apple OR juice

Will find mentions of ‘apple’ or mentions of ‘juice’ on any webpage. Must be capitalized

The NOT operator

apple NOT juice

Will find mentions of ‘apple’ on a page as long as ‘juice’ is not mentioned on that page. Must be capitalized

Brackets ( )

(apple AND juice) OR (apple AND sauce)

Will find mentions of ‘apple’ and ‘juice’ on the same page or mentions of ‘apple’ and ‘sauce’ on the same page

the proximity operator ~ (tilde)

“apple juice”~5

Will find mentions of the exact phrase ‘apple juice’ and mentions of ‘apple’ and ‘juice’ within 5 words of each other, e.g. ‘This drink was made with fresh apple, orange and pear juice’

the NEAR/x operator

(apple OR orange) NEAR/5

(smartphone OR phone)

Will find mentions of ‘apple’ within 5 words of ‘smartphone’ or ‘phone’ and mentions of ‘orange’ within 5 words of ‘smartphone’ or ‘phone’

the NEAR/xf operator

logitech NEAR/2f keyboard

Will find mentions where ‘logitech’ appears before ‘keyboard’ with 2 or fewer words in-between e.g. ‘logitech keyboard’, ‘Logitech Bluetooth Keyboard’, ‘Logitech Solar Keyboard’ etc.

the hashtags: operator

hashtags:oscars

All mentions of the hashtag #oscars on Twitter and Instagram

The at_mentions: operator

at_mentions:simoncowell

All instances of a specific Author, in this instance Simon Cowell, being mentioned on Twitter

the raw: operator

raw:Google+

Will find mentions of Google’s social networking service written with a capital ‘G’ and a plus sign. Note: if the raw: operator is not used for Google+ all mentions of Google will be found because the + will be ignored

the continent: operator

continent:eu AND “apple juice”

Will only find mentions of the exact phrase ‘apple juice’ that have been identified as from Europe. To find a location code, use the Locations drop-down when creating a Query.

the country: operator

country:uk AND “apple juice”

Will only find mentions of the exact phrase ‘apple juice’ that have been identified as from the UK. To find a location code, use the Locations drop-down when creating a Query.

the state: operator

state:calq AND “apple juice”

Will only find mentions of the exact phrase ‘apple juice’ that have been identified as from the US state of California. To find a location code, use the Locations drop-down when creating a Query.

the county: operator

county:so4o AND “apple juice”

Will only find mentions of the exact phrase ‘apple juice’ that have been identified as from the UK county of Somerset. To find a location code, use the Locations drop-down when creating a Query.

the city: operator

city:bedo AND “apple juice”

Will only find mentions of the exact phrase ‘apple juice’ that have been identified as from the German city of Berlin. To find a location code, use the Locations drop-down when creating a Query.

the site: operator

site:twitter.com AND “apple juice”

Will find mentions on a particular site, e.g. any mention of ‘apple juice’ on Twitter

the url: operator

url:“msn.com/news” AND “Simon Cowell”

Will find mentions on a particular part of a site, in this example any mention of ‘Simon Cowell’ on the news section of the MSN website

the title: operator

title:“apple juice”

Will find any mentions where ‘apple juice’ appears in the page title

the author: operator

author:justinbieber

Will find mentions across all page types with a specific author name, e.g. tweets, blogs, forums, by any author called justinbieber

the wildcard operator *

complain*

Will find mentions with the root word complain, e.g. ‘complain’, ‘complaints’, ‘complained’ etc.

NB: Only compatible with plain text.

the wildcard operator ?

customi?e

Will find mentions where ? can be replaced by another letter, e.g. ‘customise’, ‘customize’

the links: operator

links:msn.com

Will find all Twitter mentions containing links to the msn.com website, including shortened URLs. Can also be used to find specific URLs, e.g. msn.com/en-gb/news/world/the…