Twitter Power Rules

Twitter Power Rules

Power Rule Search Creation (Basic)

The power rule search is a keyword search query built by the user. Instead of completing the separate entry fields and allowing the software to create searches, users construct their own complex search queries. While this is a powerful way to build custom searches it is not without potential pitfalls. Care should be taken to avoid including vague search terms as the safety mechanisms normally included in the basic search construction method will not be enabled. A Power Rule will override a basic search.

Note: All Operators are evaluated in a case-insensitive manner. IE, dog will match on DOG, dog and Dog.
 

Positive and Negative Operators

Understanding positive and negative operators is the first step in creating a power rule search.  Any word or phrase to be included in the results is a positive operator.  Any word or phrase to be excluded in the results is a negative operator.  

Using the word party or birthday party in your power rule search will include them in search results.  The word or phrase in this example is a positive operator.  

Using the word -party or -birthday in your power rule search will exclude them in search results.  Any word or phrase with a minus (-) symbol in front, as in this example, is a negative operator.

A single power rule search can support up to 30 positive operators, and up to 50 negative operators subject to the restrictions documented henceforth.

General Search, AND-ing Terms, OR-ing Terms, Negating Terms, Grouping and Exact Match

General Search

Single word entry would match activities with that single word in the text body. For example, the following Power Search rule would match activities with ‘happy’ in the text body. 

  • happy

 

ANDing terms with a white space

Adding another keyword is the same as adding another requirement for finding matches. For example, this rule would only match activities where both ‘happy’ AND ‘party’ were present in the text, in either order – this operates as boolean AND logic.

  • happy party

Note: If the word 'AND' is placed in the rule instead of a white space, it will be rejected in the query string.

 

ORing terms with upper-case OR

Some situations call for boolean OR logic.

  • happy OR party

Note: The OR operator must be upper-case and a lower-case ‘or’ will be treated as a regular keyword.

 

Negating Terms

Some scenarios might call for excluding results with certain keywords (a boolean NOT logic). For example, activities with ‘happy’, but excluding any with ‘birthday’ in the text.

  • happy -birthday

Note: Negating terms should be conducted using the - sign as opposed to the word NOT.

 

Grouping

These types of logic can be combined using grouping with parentheses, and expanded to much more complex queries.

  • (happy OR party) (holiday OR house) -(birthday OR democratic OR republican)

 

Exact match

To match an exact phrase enclose it within quotations.

  • "happy birthday"

 

Putting it all together

The above operators can be combined with text filters for a complex query. A query string looking for customer service issues or problem but not those that contain the work fix would be illustrated as:

  • ((("customer support") (issue OR problem)) (-"is fixed"))

In this query the terms customer support issue or customer support problem would be returned as results but any statements like "my customer support problem is fixed" or "my customer support issue is fixed" would be excluded.  Therefore statements like "my customer support issue is not fixed" or the customer support problem is not fixed" would be included in the results for customer resolution.



    Need help with this?

    The DigitalStakeout team is happy to help! To request assistance, open a ticket .





      • Related Articles

      • Boolean Rules and Parameters

        Boolean Search Support in Monitors & the Result Console Some DigitalStakeout Monitors support a Boolean search option. By selecting this option, you can create a complex query to search a data source. While this is a powerful way to build custom ...
      • Incoming Result Timeframes

        Incoming Result Timeframes The time it takes for a result to reach the DigitalStakeout platform Console varies based on the data provider. Our collection time depends on how fast we can touch the source without causing disruption from the source ...
      • Performing a Locus Search

        Locus is DigitalStakeout's location based tool.  It uses XY data, primary data, inferred geography, and geographic place databases to display information.  The geographical data displayed in Locus is in real-time and historical in nature.  The data ...
      • Boolean Filtering

        Boolean Filters (Basic) The Boolean Filter is a keyword filtering mechanism built by the user. The Boolean operators below are used to create a list of rules for the CONTENT and SUMMARY fields of a result. The Boolean Filter describes what must, what ...
      • Metadata/Facet Filtering

        Metadata/Facet Filtering Metadata/Facet filtering utilizes information extracted from returned results to filter your data. Every result in DigitalStakeout has associated metadata. Some results contain the author's name or screen name, a geo tag, the ...