Keyword Modifiers |
Top Previous Next |
Keyword modifiers are new as of version 2.02.01 (January 7th, 2007)
They let you indicate that certain search directories and pattern matching scores should be engaged only when the user specifies special modifier keywords during search, using the +KEYWORD syntax.
This can be extremely useful if you want to search certain directories only in special cases.
Note that the choice of keywords is entirely up to you, you can use any strings you want for them.
You can also use keyword modifiers on scoring patterns:
WHAT HAPPENS WHEN AN ENTRY HAS NO KEYWORDS The default search directories and scores have no keyword modifiers. This means they apply ONLY when no keyword modifiers are specified in search string (or when one is specified but it doesn't match anything). Sometimes you want an entry to run if certain keywords are specified OR if no keywords at all are specified.
ADD blank TO MATCH ON NO KEYWORD AS WELL AS THE ONES SPECIFIED To specify that a directory should be searched when NO keyword modifiers are specified in addition to when others are, add the special term blank as one of the space separated keywords.
ADD * TO MATCH ON ANY KEYWORD You can also specify a keyword of * to say that the entry should be used when any keywords are specified.
TIPS AND TRICKS
|