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.
ORbetween terms matches either side. It must be in capitals.NOTbefore a term, or-directly in front of it, leaves out what matches it.


So budget -draft finds names with “budget” that don’t contain “draft”, and cats OR dogs finds either.
Operators and filters
| Term | Matches | Example |
|---|---|---|
* | Any run of characters | *.jpg |
? | Exactly one character | report? |
"…" | The exact phrase, spaces included | "quarterly report" |
OR | Either term | cats OR dogs |
AND | Both terms (the default, so it is optional) | invoice AND 2024 |
NOT or - | Leaves out the next term | budget NOT draft, budget -draft |
name: | The file name only | name:invoice |
ext:, extension:, type: | The extension, with or without the dot | ext:pdf |
kind: | A kind of file (see below) | kind:image |
size: | The size | size:>10mb |
date:, modified:, datemodified: | The modification date | date:thisweek |
created:, datecreated: | The creation date | created:>2024-01-01 |
contents:, content: | The text inside the file | contents:invoice |
author:, authors: | The document’s author | author:jane |
tag:, tags: | A tag name | tag: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: value | Also accepted | Matches |
|---|---|---|
image | images, picture, pictures, photo, photos | Images |
audio | music, song, songs, sound | Audio |
video | videos, movie, movies | Video |
pdf | PDF documents | |
folder | folders | Folders |
app | apps, application, applications, program | Apps |
archive | archives, zip, compressed | Archives |
text | txt | Plain text |
code | source | Source code |
document | documents, doc, docs | Documents and other content |
Size
| Form | Example | Notes |
|---|---|---|
| Comparison | size:>10mb, size:<=500kb, size:=0 | >, <, >=, <=, =. A number alone means “at least”. |
| Range | size:1mb..10mb | Both ends included. |
| Named size | size:large | See 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 size | Range |
|---|---|
empty | 0 bytes |
tiny | Under 10 KB |
small | 10 KB to under 100 KB |
medium | 100 KB to under 1 MB |
large | 1 MB to under 16 MB |
huge | 16 MB to under 128 MB |
gigantic | 128 MB or more |
Folders never match a size filter.
Dates
date: and created: accept these values:
| Value | Matches |
|---|---|
today | Since the start of today |
yesterday | Yesterday only |
thisweek or week | Since the start of this week |
lastweek | Since the start of last week |
thismonth or month | Since the start of this month |
lastmonth | Since the start of last month |
thisyear or year | Since the start of this year |
lastyear | Since the start of last year |
2024-01-01, >2024-01-01 or >=2024-01-01 | From the start of January 1, 2024 on |
<2024-01-01 | Before January 1, 2024 |
2024-01-01..2024-03-31 | From 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
| Query | Finds |
|---|---|
*.png size:>1mb | PNG files larger than 1 MB |
invoice -draft date:thismonth | Names with “invoice” but not “draft”, changed this month |
"final report" OR "draft report" | Either phrase |
ext:pdf author:jane | PDFs whose author includes “jane” |
kind:video size:huge modified:>2024-01-01 | Videos of 16 to 128 MB changed since January 1, 2024 |
contents:roadmap tag:red | Files with “roadmap” in their text and the red tag |
Thanks, that helps us improve this page.