Skip to main content
This page provides a complete list of operators available when building rules for Filtered Stream.

Overview

Operators are used to match on specific Post attributes. There are two types:
  • Standalone operators — Can be used alone or with any other operators
  • Conjunction-required operators — Must be used with at least one standalone operator
Some advanced operators (such as semantic embedding) require Embedding tier access in addition to Enterprise.

Keyword and phrase operators


Entity operators


User operators


URL operators


Context and entity operators


User profile operators


Location operators


Post type operators


Content type operators


Sampling and language operators


User metrics operators


Post reference operators


Logical operators


Semantic operators

Requires Embedding tierThe embedding: and embedding_threshold: operators require Embedding tier access on your Enterprise Filtered Stream instance. If not provisioned, rule creation will fail with an “‘embedding’ is not an available operator” error.
These operators use a neural embedding model to match Posts by semantic similarity to a query, rather than requiring exact keyword matches.

Key requirements and notes

  • embedding_threshold: cannot be the only operator in a rule. Pair it with embedding: (or another standalone operator).
  • Do not negate embedding: (e.g. -embedding:"..." is unsupported).
  • Longer, descriptive natural language queries produce better results than short keywords.
  • Embedding query processing is asynchronous — newly created rules may take a few seconds before they begin matching.
  • When a Post matches via an embedding rule, the delivered payload’s matching_rules entries will contain embedding_similarity and embedding_threshold (see Matching Posts to Rules).
Example rules:
  • embedding:"electric vehicle announcements" lang:en -is:retweet has:links
  • embedding:"natural disaster relief" embedding_threshold:0.45 has:media
  • embedding:"renewable energy" embedding_threshold:0.4 OR embedding:"solar power investment"

Supported languages

The lang: operator supports these BCP 47 language codes:

Next steps

Build a rule

Learn rule syntax and best practices

Filtered Stream introduction

Get started with Filtered Stream

Handling disconnections

Handle streaming disconnections