Queries in API


(David Chavalarias) #1

I would like to query tweets with the hashtag #FI in /pvt/politic/france/twitter/search but I can’t get only the exact string query ( “#FI” or “#FI” or #FI also retrieve all tweet with fi inside). What would be the right query to limit to the exact match ?


(Maziyar Panahi) #2

Hi david,

Special characters such as # or @ cannot be searched. However, since there fields for hashtags and mentions, you can just search inside those fields:

Example:

entities.hashtags.text: fi

NOTE: Please keep in mind this may change in the future since I have to update the way we user query_string. Also, add full_text since most of the tx field is truncated by 140 characters.


(Maziyar Panahi) #3