Reference Corrected Reviewed for 1.1.11

Query syntax

Type wildcards, operators and filters such as kind:image or size:>10mb straight into the search field.

On this page 6 sections

The search field reads the same kind of expressions as Windows Explorer’s search. Plain words work as always: anything the field doesn’t recognize as an operator or filter is searched as part of a name, without regard to case or accents.

How a query is read

  • The query is split into terms at each space. Text in double quotes stays one term: "quarterly report".
  • Terms are combined with AND: a result has to match every one.
  • OR between terms matches either side. It must be in capitals.
  • NOT before a term, or - directly in front of it, leaves out what matches it.
The search field holding kind:pdf size:<1mb, with the matching PDF files listed belowThe search field holding kind:pdf size:<1mb, with the matching PDF files listed below

So budget -draft finds names with “budget” that don’t contain “draft”, and cats OR dogs finds either.

Operators and filters

TermMatchesExample
*Any run of characters*.jpg
?Exactly one characterreport?
"…"The exact phrase, spaces included"quarterly report"
OREither termcats OR dogs
ANDBoth terms (the default, so it is optional)invoice AND 2024
NOT or -Leaves out the next termbudget NOT draft, budget -draft
name:The file name onlyname:invoice
ext:, extension:, type:The extension, with or without the dotext:pdf
kind:A kind of file (see below)kind:image
size:The sizesize:>10mb
date:, modified:, datemodified:The modification datedate:thisweek
created:, datecreated:The creation datecreated:>2024-01-01
contents:, content:The text inside the filecontents:invoice
author:, authors:The document’s authorauthor:jane
tag:, tags:A tag nametag:red

A word with * or ? has to match the whole name, so report* finds “report final.pdf” but report? only finds names of seven characters that start with “report”.

A key:value term is a filter only when the key is one of those above and something follows the colon. Anything else, such as a time like 10:30, is searched as plain text. The same goes for a kind:, size: or date value the field doesn’t understand.

Kinds

kind: valueAlso acceptedMatches
imageimages, picture, pictures, photo, photosImages
audiomusic, song, songs, soundAudio
videovideos, movie, moviesVideo
pdfPDF documents
folderfoldersFolders
appapps, application, applications, programApps
archivearchives, zip, compressedArchives
texttxtPlain text
codesourceSource code
documentdocuments, doc, docsDocuments and other content

Size

FormExampleNotes
Comparisonsize:>10mb, size:<=500kb, size:=0>, <, >=, <=, =. A number alone means “at least”.
Rangesize:1mb..10mbBoth ends included.
Named sizesize:largeSee the table below.

Units: b, kb or k, mb or m, gb or g, tb or t. A number with no unit is in bytes. One KB is 1,024 bytes.

Named sizeRange
empty0 bytes
tinyUnder 10 KB
small10 KB to under 100 KB
medium100 KB to under 1 MB
large1 MB to under 16 MB
huge16 MB to under 128 MB
gigantic128 MB or more

Folders never match a size filter.

Dates

date: and created: accept these values:

ValueMatches
todaySince the start of today
yesterdayYesterday only
thisweek or weekSince the start of this week
lastweekSince the start of last week
thismonth or monthSince the start of this month
lastmonthSince the start of last month
thisyear or yearSince the start of this year
lastyearSince the start of last year
2024-01-01, >2024-01-01 or >=2024-01-01From the start of January 1, 2024 on
<2024-01-01Before January 1, 2024
2024-01-01..2024-03-31From the start of the first date to the start of the second

A typed date stands for the very start of that day, midnight. To include all of March 31 in a range, end it on April 1.

Dates can be written 2024-03-31, 2024/03/31, 03/31/2024 or 31/03/2024. A date like 04/03/2024 is read as April 3, so prefer year first.

Examples

QueryFinds
*.png size:>1mbPNG files larger than 1 MB
invoice -draft date:thismonthNames with “invoice” but not “draft”, changed this month
"final report" OR "draft report"Either phrase
ext:pdf author:janePDFs whose author includes “jane”
kind:video size:huge modified:>2024-01-01Videos of 16 to 128 MB changed since January 1, 2024
contents:roadmap tag:redFiles with “roadmap” in their text and the red tag
Still stuck? Write to us with what you tried. We read every message.