2
votes

I'm trying to do an advanced search to get tweets that MUST include one word from the following three word groups: html or css, developer or engineer, home or remote.

I've read the Twitter's documentation and the query I should be using is:

html OR css developer OR engineer home OR remote

And I also tried:

html OR css AND developer OR engineer AND home OR remote

https://twitter.com/search?f=tweets&vertical=default&q=html%20OR%20css%20developer%20OR%20engineer%20home%20OR%20remote&src=typd

I'm getting inaccurate results, it's showing tweets that don't have at least one word from each word group:

enter image description here

Where is the issue? I've contacted Twitter's support but they don't respond to individual reports :/

ATTENTION: I don't want results from the Top tab. The Top tab only shows popular tweets. The Live tab shows all the tweets ands that's what I want. https://support.twitter.com/articles/131209

4

4 Answers

0
votes

Just put quotes around the words.

"html" OR "css" AND "developer" OR "engineer" AND "home" OR "remote" seems to do exactly what you want.

0
votes

You need to put brackets around the terms you wish to group. For example:

html OR css AND developer OR engineer AND home OR remote

becomes

(html OR css) AND (developer OR engineer) AND (home OR remote)

Example

0
votes

You need to put brackets around each group. Also "AND" should be replaced with a space. Try this:

(html OR css) (developer OR engineer) (home OR remote)
0
votes

According to Twitter's Search API:

Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.

So that's why the search results are "inaccurate". I ended up creating a Node.js script that uses the Streaming API and filters the tweets I want.