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.

 

For example, you might normally search only your start menu, but you want to search your "MyDocuments" folder and your "Documents and Settings" folders when the modifier "mydocs" is used.
To do this, add the new directories and specify the keyword mydocs in each case.
Now, to search for a file with "money" in its name, in these folders you could type: "money +mydocs" or "+mydocs money".
FARR will know that in this case it should search in these two additional folders

 

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:

 

For example, you might not normally care about search for mp3 files, but you want to be able to find them easily.
So add a new score pattern of *.mp3 with a score of 3000, and use the keyword modifier mp3.
Now when you type in +mp3 in your search, all mp3 files will get a huge boost in score.

 

 

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

 

Each directory pattern or score pattern entry can have multiple keyword modifiers, separated by spaces.
You don't specify the + when you are configuring an entry, but you must specify it when typing a search in the main form.
Feel free to use the same keyword modifiers in multiple scoring and directory entries for maximum benefit.
If you want to match on all keywords except a specific one or two, use the keyword * followed by "-KEYWORD" for keywords to reject.