Folder Search Syntax
Advanced search syntax can be used to find items located in a particular folder. All advanced search types can be customized with advanced search operators and wildcards.
- {LF:Lookin="Path", Subfolders=Y/N}
Path represents the folder path searched, and must be enclosed by quotation marks.
Subfolders is an optional term; it determines whether subfolders of the specified folder path will also be searched. This parameter can be set to "Y" for yes or "N" for no. The default is “yes”; if the term is omitted, subfolders will be searched.
The following illustrates sample syntax you can use to limit search results to specific folders. The following examples search in the Accounting subfolder of the General root folder. The first example will not search subfolders; the others will.
To search in a single folder only
The following search will return all entries in the General\Accounting folder.
- {LF:Lookin="General\Accounting", Subfolders=N}
The following examples will search in the General\Accounting folder, and its subfolders, for documents containing the word "Transportation," and will return identical results.
- {LF:Lookin="General\Accounting", Subfolders=N}
- {LF:Lookin="General\Accounting", Subfolders=Y} & Transportation
- {LF:Lookin="General\Accounting"} & Transportation
To search in multiple folders at once
You can combine multiple folder searches with the OR (|) operator. The following syntax will search in both the General\Accounting and General\Sales folders.
- {LF:Lookin="Company General\Accounting"} | {LF:Lookin="Company General\Sales"}
The following illustrates how to search in both the General\Accounting and General\Sales folders for the word "Transportation."
- {LF:Lookin="Company General\Accounting"} | {LF:Lookin="Company General\Sales"} & Transportation
To exclude folders from searches
You can exclude specific folders from your search using the NOT operator (-). The following search syntax will search for all documents containing the word "Report" that are not in the folder Company General\Accounting.
- Report - {LF:Lookin="Company General\Accounting"}