Template and Field Search Syntax

Advanced search syntax can be used to look for all entries associated with a particular template, field, or field value. All advanced search types can be customized with advanced search operators and wildcards; in addition to the standard set of operators, you can use a comma to search for documents and folders that must satisfy multiple field criteria.

Template Search Syntax

To search across any template, leave the Template name blank "[]".

TemplateName is the name of the template being searched for.

Field Search Syntax

Value is the field content you are searching for. To search across any field, leave the name blank: "[]", or to search for fields that are unpopulated, leave the Value blank: {[]:[FieldName]=""} (this is the only way to search for a blank field; wildcards will not return blank fields).

FieldName is the name of the field whose values are being searched for.

Note that the = operator may be replaced by the ~= operator if the field is indexed. See Indexed and Non-Indexed Fields for more information.

Template/Field Search Syntax 

Value is the field content you are searching for. To search across any template or field, leave the name blank "[]".

Note that the = operator may be replaced by the ~= operator if the field is indexed. See Indexed and Non-Indexed Fields for more information.

Indexed and Non-Indexed Fields

Administrators may choose to index certain text and list fields, which allows those fields to be searched with either indexed or non-indexed searches. Field searches for indexed fields are performed as indexed searches by default in Laserfiche client applications, but may also be performed as non-indexed searches by choosing the correct operator: the indexed search operator (~=) or the non-indexed search operator (=). Non-indexed fields, as well as all numeric, date, and time fields, may only be searched using non-indexed search.

For more information on administering field indexing, see Indexing Fields in the Laserfiche Administration Guide.

The following syntaxes will perform an indexed search for a field:

The following syntaxes will perform a non-indexed search for a field:

Note: If you attempt to use the indexed search operator with a non-indexed field, you will receive an error and will need to perform the search again with the non-indexed search operator.

Multiple Field Criteria

When searching for multiple fields/values, the following advanced search syntaxes are interchangeable:

The following advanced search syntax uses operators and will return a range of values:

Value is the field content you are searching for.

Date and Date/Time Search Syntax

The order in which the month, day, and year should be specified is determined by the short date format configured on your workstation.

Example: A date/time value is: 05/31/2012 09:45:13 AM.

Date or date/time search syntax

Template and date or date/time search syntax

Multi-value Field Position Search Syntax

When searching for a multi-value field, you can specify that you only want to return a value if it is in a particular position in a multi-value field list. To do so, you would use the following syntax:

where FieldName is the name of the mulit-value field, IndexPosition is the position where you want to locate the value (with 1 as the first value, 2 as the second, etc.), and value is the value you are searching for.

Parent Template Search

You can search for entries based on the template of their parent entry, using the following syntax:

Replace name with the template name.

The Template/field search syntax contains features that are additional to other advanced search syntax

  1. The entire syntax must be enclosed with curly brackets {}.
  2. Names of the desired template and fields must be enclosed with brackets [].
  3. If searching for a field that contains text, dates, or date/times, you must enclose the value with quotation marks. If searching for numbers, quotation marks around the desired number are optional. For example, searching for a field value of "3/28/1989" must be enclosed in quotation marks, however, searching for a field value of "4" does not require quotation marks.