Use mix boolean logic with Search API


#1

Hi!

Maybe someone already ask this but I couldn’t find it. Is it possible to search with Twitter API with mixed boolean logic. i.e:

term1 AND (term2 OR term3 OR …)

or should I make “n” searchs to collect all results=

Thank you!


#2

Yes, boolean logic works with search/tweets just as in your example. I think specifying AND is redundant, but it seems to work. You could use this:

term1 (term2 OR term3 OR …)


#3

Thank you Jonas!