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
Most operators are available on both Pay-per-use and Enterprise. Some advanced operators (such as semantic embedding) require Enterprise with additional tier access.

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


Embedding operators

Enterprise only — Embedding tier requiredThe embedding: and embedding_threshold: operators are only available on Enterprise accounts provisioned with Embedding tier access for Filtered Stream. On unsupported tiers, rule creation will be rejected with an “unavailable operator” error. Contact your account representative to enable.
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