Listed below are examples and instructions for advanced searching using the Search Keyword box in the MessageWatcher Search tab.
Search reference:
USAGE:
- Match both words (AND) by including all words with spaces between them: word1 word2
- Match messages with any word (OR) by using the | symbol between them: word1 | word2
- Match messages that include word1 but exclude messages that also contain word2: word1 -word2
- Match messages that contain the exact phrase provided in quotes: “word1 word2”
- Use brackets to create more complex expressions and preserve logic precedence. This example will find messages with either word1 OR word2 AND must include both word3 AND word4: (word1 | word2) (word3 word4)
- Proximity between two words (all words are required to be found), the number indicates the number of words between the provided keywords plus 1. In this example,
word1 must be found with only 2 other keywords between it and word2. Just add 1 to the number to allow for the extra gap, if the customer wants two words within 20, use 21.
“word1 word2″~3 - Proximity between two expressions for more complex matching within a number of words between the provided expressions plus 1. This search will match messages where both word1 AND word2 are required and are
within 2 words of word3 OR word4. Just add 1 to the number to allow for the extra gap, if the customer wants matches within 20 use 21. (word1 word2) NEAR/3 (word3 | word4) - Match any N out of all keywords. This example will match any two of the three keywords:“word1 word2 word3″/2
NOTES:
- Default indexes allow for searches on keywords of 2 or more characters.
Reference to change word length: min_word_len = 2
Reference to allow wildcard searches: enable_star = 1
Searches that require 1 character searches or wildcard searches can be done but indexes first need to be rebuilt after changing the configuration on the back end. - Searches that include “blend” characters are indexed with and without the blend character: #, $, %, &, ‘, +, -, ., /, :, =, @, {, |, }, ~
For example, AT&T results in 3 indexed keywords (“at”, “t”, and “at&t”)
Reference to change blend characters:blend_chars = #, $, %, &, ‘, +, -, ., /, :, =, @, {, |, }, ~