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 <p...@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.
>

Reply via email to