Database Reference
In-Depth Information
A simple search
Imagine that we wanted to search for tweets containing the word coffee. We could use
the code presented here and place it in the search bar:
index=twitter text=*coffee*
The preceding code searches only your Twitter index and finds all the places where the
word coffee is mentioned. You have to put asterisks there, otherwise you will only get
the tweets with just "coffee". (Note that the text field is not case sensitive, so tweets with
either "coffee" or "Coffee" will be included in the search results. There are hacks to get
around this using regular expressions, but these are beyond the scope of this topic.)
The asterisks are included before and after the text "coffee" because otherwise we would
only get events where just "coffee" was tweeted - a rather rare occurrence, we expect. In
fact, when we search our indexed Twitter data without the asterisks around coffee, we got
no results.
Search WWH ::




Custom Search