I have found that passing search terms of the form
“\w+.(com|org|net|gov)” OR “\w+”
into the rest api returns no search hits no matter if the second term returns hits or not.
For example, for a search on me.com and apple I pass this string into the Query class (Twitter4j)
%22me.com%22%20OR%20%22apple%22
Query looks like this:
{query=’%22me.com%22%20OR%20%22apple%22’, lang=‘en’, locale=‘null’, maxId=-1, count=15, since=‘null’, sinceId=1, geocode=‘null’, until=‘null’, resultType=‘null’, nextPageQuery=‘null’}
but no search results are returned.
{sinceId=1, maxId=464553632378408960, refreshUrl=’?since_id=464553632378408960&q=%2522me.com%2522%2520OR%2520%2522apple%2522&lang=en&include_entities=1’, count=15, completedIn=0.011, query=’%22me.com%22%20OR%20%22apple%22’, tweets=[]}
If I remove the me.com from the search terms then I receive a set of results as expected.
I have tested this with .com, .net, .org, and .gov and have the same result.
It does work just fine if I pass in me.not instead of me.com.
No error is thrown.
Any suggestions on what I am doing wrong?