Fetching streaming search text


I am using twitter streaming API on ruby platform.
With the help of the twitter gem(https://github.com/sferik/twitter) i am able to find the stream text.

On inspecting the tweets, i am able to get the tweets.

:text=>“Sublime Text: One Editor to Rule Them All? | Linux Journal - http://t.co/8riSamtlc4

But i need the exact search text which entered something like :search=>“linux”


I’m not completely sure I understand what you’re looking for? The Streaming API itself won’t tell you how or why a streamed tweet matched the criteria you provided. You’ll need to analyze the results you get back to determine what aspect of the tweet matched your criteria – perhaps you’ll want to run regular expressions against the text attribute using your terms as the pattern you’re identifying?