Skip to content
English
  • There are no suggestions because the search field is empty.

Search Syntax for the Document Search Bar

The Document Search Bar lets you build precise searches using a formula. A formula is made up of one or more conditions, which you can combine to narrow or broaden your results. This article explains each condition you can use and how to write it correctly.

Notes:

  • Conditions are combined automatically using AND logic — meaning all conditions must match.
  • Use or (lowercase) between conditions to find documents that match either one.
  • Use brackets ( ) to group conditions together.
  • Place a minus sign - directly before any condition to exclude it from results.


Here are some examples of formulas you could use.

Condition

Sample Formula

Explanation of Examples

Containing Word

contract

Matches documents containing the word "contract" or "contracts"

Not containing word

-contract

Matches documents that do not contain the word "contract" or "contracts"

Containing Phrase

"Contract for Services"

Matches documents containing the phrase "contract for services", or phrases whose words have similar stems, like "contracts for service"

Having searchable text

indexed:yes

Matches documents that has text that is readable by the system

Is Indexing complete?

is-indexing-complete:yes

Finds documents whose indexing is fully complete

Having reference number 

reference-number:1234

Matches documents that have a reference number that matches1234

Containing word in a specific field

subject:contract

Matches documents containing the word "contract" or "contracts within the Subject field

Dated on or after

from-date:2020-12-25

Matches documents dated on or after 25.12.2020

Dated on and before

to-date:2020-12-25

Matches documents dated on or before 25.12.2020

Dated on or between

from-date:2020-12-25:to-date:2022-12-25

Matches documents dated on or between 25.12.2020 and 25.12.2022

Has a defined date

has-date:yes

Matches documents that has a date

Has extension

extension:.pdf

Matches all documents that are a .pdf file

Has file type

type:pdf

Matches all documents that are a pdf file

Duplicate status

duplicate:primary

Finds the primary copy of duplicate documents.

Other values: spare (the duplicate copy), none (not a duplicate)

With ID 

doc:SF2345

Matches all documents that have an ID of SF2345

Within folder

folder:documents

Matches all documents that are within the folder called documents and does not include the contents of subfolders and attachment folders 

Within Folder or any of its subfolders

within:documents

Matches all documents that are within the folder called documents and includes the contents of subfolders and attachment folders 

Labelled as

tag:important:yes

Matches all documents that are tagged as “important”

Labelled as not

tag:important:no

Matches all documents that are tagged as not “important”

File is corrupt

Is-corrupt:yes

Matches all documents that are corrupt

File is password protected 

Is-password-protected:yes

Matches all documents that are password protected

Is an attachment?

is-attachment:yes

Finds documents that are attachments.
Use is-attachment:no for standalone documents

Containing email domain/s

parties:@example.com

Finds emails involving any address at example.com

Containing email domain/s in a specific field

parties:from:@example.com

Finds emails sent from an address at example.com. Other fields: to, cc, bcc, any

Containing email domain/s and no others in a specific field

only-parties:@example.com

Finds emails where example.com is the only domain involved

Matching saved search

Matches:SQ123

Matches all documents that match saved search SQ123

Matching any condition

Contract or Agreement or from-date:2020-12-25

Matches all documents that contain “contract/s” or “agreement/s” or dated after 25.12.2020

Matching all

Contract Agreement from-date:2020-12-25

Matches all documents that contain “contract/s” “agreement/s” and are dated after 25.12.2020

Group conditions

(contract or agreement) confidential

Finds documents containing "confidential" and either "contract" or "agreement"