Other Methods of Rule
Development
When creating the rule syntax for a topic, you may have a few specific entities in mind for rule creation. This and connecting articles will help you to know how to write the rules for any type of entity search. In addition, there are a few search terms that cannot be queried through the preferred method of Rule Creation by Filtering. For these rules, the only way to use the search syntax is to type it in yourself. We will discuss this type of query first.
For all types, the general syntax for rule development is tag, colon ( : ), identifying features, with no whitespace between components ( <tag>:<identifiers> ). Specific examples follow.
Language-- This can narrow data based on the language identified in the document. The tag for this type of rule is lang. The identifiers for the lang tag are language codes. For example, the language code for english is en. Therefore, the syntax to narrow all documents to those identified as being in English is lang:en . All currently available languages and their corresponding language codes are listed here.
Reach-- This can narrow data based on the number of users reached by the documents. The tag for this type of rule is reach. The identifier for the reach tag are numeric values for the desired reach. For example, if you wanted to limit the feed to documents that have a reach of 100 or more users, the identifier would be 100. Therefore, the syntax to create this rule would be reach:100 .
Text-- This tag was already discussed as a starting point for Creating Rules by Filtering Graph Widgets. This can narrow data based on a keyword or key-phrase. The tag for this type of rule is text. The identifiers for the text type are whatever keywords or phrases you wish to search for. For example, you could perform a search for the keyword 'bomb' in all documents. In this example, the identifier would be bomb. Therefore, the syntax to create this rule would be text:bomb . Using a key-phrase in a text tag search requires the use of quotations to separate the rule from surrounding rules. For more information on the use of quotes, see the article Text and Phrase Searches.
Phrase-- This tag narrows data based on the presence of specific phrasing in a document. The tag for this type is phrase. The identifier for the phrase tag is a keyword or phrase chosen by the user. This will perform a search on all documents in the live feed for those containing the word, 'phrase' followed by the keyword (or key-phrase) in quotations. For example, you could perform a search for all documents citing someone who said the phrase, "There is a bomb." In this example, the identifier would be 'There is a bomb.' Therefore, the syntax to create this rule would be phrase:'There is a bomb.' For more information on the use of quotes for keyword and key-phrase searches, see the article Text and Phrase Searches.
All other types available for rule-creation can be accessed by creating rules with filters; and this is the preferred method of generating syntax for these rules. If you wish to try rule creation with the other types available, continue.
Article ID: 17, Created On: 2/15/2012, Modified: 3/9/2012