camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: using or operator in twitter keywords search
Date Fri, 10 May 2013 13:57:32 GMT
Hi

Thanks for sharing that link to this search page.
I have added a note to the Camel twitter docs.

On Thu, May 9, 2013 at 10:42 PM, Bruno Borges <bruno.borges@gmail.com> wrote:
> Twitter has its own operators. Just use them in your "keywords" parameter:
>
> https://support.twitter.com/articles/71577-using-advanced-search
>
> The documentation might be misleading you to believe that you can only use
> comma-separated keywords. Actually, the keyword parameter value is passed
> directly to the Query object of Twitter4J:
>
>     public List<Tweet> pollConsume() throws TwitterException {
>         String keywords = te.getProperties().getKeywords();
>         Query query = new Query(keywords);
>         if (te.getProperties().isFilterOld()) {
>             query.setSinceId(lastId);
>         }
>         LOG.debug("Searching twitter with keywords: {}", keywords);
>         return search(query);
>     }
>
> Let me know if it helps.
>
>
> *Bruno Borges*
> (11) 99564-9058
> *www.brunoborges.com*
>
>
> On Thu, May 2, 2013 at 3:59 AM, Preben.Asmussen <pras@dr.dk> wrote:
>
>> Created https://issues.apache.org/jira/browse/CAMEL-6332 so we don't
>> forget.
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/using-or-operator-in-twitter-keywords-search-tp5731873p5731887.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message