Gnip is always looking for ways to improve its filtering capabilities and customer feedback plays a huge role in these efforts. We are excited to announce enhancements to our PowerTrack product that allow for more precise filtering of the Twitter Firehose, a feature enhancement request that came directly from you, our customers.
Gnip PowerTrack rules now support OR and Grouping using (). We have also loosened limitations on the number of characters and the number of clauses per rule. Specifically, a single rule can now include up to 10 positive clauses and up to 50 negative clauses (previously 10 total clauses). Additionally, the character limit per rule has grown from 255 characters to 1024.
With these changes, we are now able to offer our customers a much more robust and precise filtering language to ensure you receive the Tweets that matter most to you and your business. However, these improvements bring their own set of specific constraints that are important to be aware of. Examples and details on these limitations are as follows:
OR and Grouping Examples
- apple OR microsoft
- apple (iphone OR ipad)
- apple computer –(fruit OR green)
- (apple OR mac) (computer OR monitor) new –fruit
- (apple OR android) (ipad OR tablet) –(fruit green microsoft)
- A single rule may contain up to 1024 characters including operators and spaces.
- A single rule must contain at least 1 positive clause
- A single rule supports a max of 10 positive clauses throughout the rule
- A single rule supports max of 50 negative clauses throughout the rule
- Negated ORs are not allowed. The following are examples of invalid rules:
- -iphone OR ipad
- ipad OR -(iphone OR ipod)
- An implied “AND” takes precedence in rule evaluation over an OR
For example a rule of:
- android OR iphone ipad would be evaluated as apple OR (iphone ipad)
- ipad iphone OR android would be evaluated as (iphone ipad) OR android
You can find full details of the Gnip Power Track filtering changes in our online documentation.
Know of another way we can improve our filtering to meet your needs? Let us know in the comments below.