Version Search Syntax
Advanced search syntax can be used to search for documents that contain a particular version. (Or, search for versions using the Search Pane.)
A document under version control will contain multiple versions, and each version will have its own attributes (such as the date the version was created, the user who created the version, and the version label). You can perform a search for characteristics of a single version, or a search for characteristics contained in any version or combination of versions in that document. In order to allow you to specify more than one search criteria within a single version, we use a special version search namespace. You can use wildcards or operators to determine the results returned.
The following version searches can be used separately or combined:
Version Created By:
- {LFVER:ModifiedBy="User Name"}
The following will search for a document with a version created by the Windows domain user DOMAIN\JSmith.
- {LFVER:ModifiedBy="DOMAIN\JSmith"}
Version Comment:
Version comment searches 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 examples below show the operator for the default search, which for these search types is indexed search. You can perform these searches as non-indexed searches by replacing the indexed search operator (~=) with the non-indexed search operator (=). See Indexed and Non-Indexed Searches and Operators for more information.
- {LFVER:Comment~="Value"}
Value is the comment or part of the comment on the version you are searching for. It must be enclosed in quotes.
The following will search for all versions created by the user DOMAIN\JSmith and that have a version including the comment Import.
- {LFVER:ModifiedBy="DOMAIN\JSmith"} & {LFVER:Comment~="Import"}
Note: The example immediately above would return both documents in which the user JSmith created a version with the comment "Import", and documents containing versions created by the user JSmith where another version in the document contains the comment "Import". The "Import" comment would not have to be on a version created by JSmith.
Version Label:
- {LFVER:Label="Value"}
Value is the label applied to the version you are searching for. It must be enclosed in quotes.
The following will search for documents that have the label Annual Meeting 2011.
- {LFVER:Label="Annual Meeting 2011"}
Version Modified Date:
- {LFVER:Modified="mm/dd/yy"}
mm/dd/yy is the date on which the version you are searching for was created. It must be in the format mm/dd/yy, mm-dd-yy, mm/dd/yyyy, or mm-dd-yyyy, and must be enclosed in quotes.
The following will search for versions created since December 1, 2011.
- {LFVER:Modified>="12/1/2011"}
The following will search for versions created by Laserfiche user DOMAIN\JSmith in December of 2011.
- {LFVER:ModifiedBy="DOMAIN\JSmith",Modified>="12/1/2011",Modified<="12/31/2011"}
Version Number:
- {LFVER:Version=Value}
Value is the version number of the version you are searching for. It must be an integer value.
LFVER is the namespace for versions; Modified and Label are the attributes of the version that is being searched for.
Note: The example search is different from {LFVER:Modified="John"} & {LFVER:Label="annual meeting 2011"}. The former requires a single version to match both criteria of the attributes while the later will find documents which have two versions that, combined, meet the criteria.