Filter for an exact match against one or more values from a list.


The in operator takes a comma-separated list of string or integer arguments. You cannot use floating-point arguments.

It does not use tokenization. It makes an exact string match on its arguments.




Note the use of quotes for string arguments and square brackets for integer arguments.

in "string, string, .... string"

in [int, int, .... int]


  1. Filter for posts written in English, German, or Spanish:

    language.tag in "en,de,es"
        and interaction.sample < 1

    The key point to understand is that the in operator succeeds only if it finds a match between one of the values in the argument list and the entire content of the target. For example, the language.tag target holds a language code, usually two characters long. If a message is written in English, the language.tag is "en", and the in operator only matches if a value in the argument list is "en". If you write your argument list as "probably en, de, es", the filter would continue to find German and Spanish content but it would no longer find content with an "en" language code.

    Notice that we've used interaction.sample here to sip just 1 percent of the objects from the Firehose. Without this limit, the stream would produce a very large number of output objects.

  2. Filter for Tumblr activity from blogs with a set of names. in "Music Moves You, The Intersect"