Operators

The following operators can be used when specifying search criteria.

Note: Certain operators can only be used when performing specific types of searches. Limitations on the uses of a particular operator are included as a part of the description. For example, the Within operator cannot be used when performing a name search. It is only valid for full text searches.

Operator Description Sample
& (AND) Valid search results must contain the search criteria that appears before and after the ampersand. Phrase1 & Phrase2
| (OR) Valid search results must contain either the search criteria that appears before or after the pipe (vertical bar). Phrase1 | Phrase2
- (NOT) Valid search results should not satisfy the search criteria that appears after the dash. Phrase1 - Phrase2
^# (WITHIN) The carat symbol can be used to determine the maximum distance by which two phrases may be separated in a document and still be considered a valid search result. Phrase1 ^5 Phrase2
() Parentheses are used to determine the order in which search criteria will be processed. Laserfiche processes the innermost parentheses first and works outward. Parentheses can be nested as deeply as desired. If there are no parentheses, Laserfiche operates from left to right. (a & b) | (c & d)
{} Braces are used by all search syntaxes except for full-text search. For more information on the proper use of braces, please see the notation for the desired search type. {LF:Name="Query", Type=FD}
= The equal symbol indicates that valid search results must match the specified value. {General:Document="maui"}
> The greater than symbol indicates that valid search results must be greater than the specified value. This operator can only be used when searching by creation/modification date or on a numeric or date field. {General:Date>"5/27/2001"}
>= The greater than or equal to symbol indicates that valid search results must be greater than or equal to the specified value. This operator can only be used when performing a template search on a numeric or date field. {General:Date>="5/27/2001"}
< The less than symbol indicates that valid search results must be less than the specified value. This operator can only be used when searching by creation/modification date or on a numeric or date field. {General:Date<"5/27/2001"}
<= The less than or equal to symbol indicates that valid search results must be less than or equal to the specified value. This operator can only be used when searching by creation/modification date or on a numeric or date field. {General:Date<="5/27/2001"}
<> The not equal to symbol indicates that valid search results must not be equal to the specified value. This operator can only be used when searching by creation/modification date or on a numeric or date field. {General:Date<>"5/27/2001"}