I am creating a bug report after a user of the library mentioned that the Search API was not returning the results he was expecting.
So I read again the documentation of the Search and I think he is correct.
Lets take this very simple example :
URL Entities Matches
First thing we can note is that Twitter is not only filtering based on the text but also based on the content of Url entites.
For example the Tweet https://twitter.com/StateOfNetwork/status/862024698091188224 does not contain anywhere the
TRUMP keyword BUT the link description does (on twitter.com). The JSON returned by Twitter REST API does not include any metadata with the TRUMP keyword.
The problem here is the fact that the JSON provided does not include the extra link metadata because it makes it impossible for the developers to understand why the tweet has been matched.
Image Entities Matches
Another type of matching seems to be images. For example the tweet https://twitter.com/AndyKroll/status/861688635002941441 contains an image with the text TRUMP.
Same problem the JSON does not provide any information that the tweet is related to TRUMP
Finally we have what I call the mysterious matches.
With a search for the keyword
ISIS twitter has returned the Tweet https://twitter.com/DMV_Drummerboyy/status/832426727343271937 which has no text whatsoever related with
I verified ALL the comments related to this tweet and none of them mention
Could you please provide more information as to what is going on please.