|Searches within the title and body of the note||
foo searches for all notes with foo in title or body.
foo bar searches for all notes with foo in title or body and bar in title or body.
foo -bar searches for all notes with “foo” that don’t contain "bar"
"foo bar" does a phrase search.
|any:||By default all the search terms will be connected by and in the backend (
any:1 tag:t1 tag:t2 will return notes that have tag t1 or t2.
any:0 tag:t1 tag:t2 wll return notes that have both tags t1 and t2. (Default behaviour)
|title:||Searches within the title of the note.||
title:hello searches for notes whose title contains “hello”.
title:“hello world” searches for notes whose title contains “hello” and “world”.
title:hello -title:world searches for notes whose title contains “hello” but not “world”
|body:||Searches within the body of the note.||
body:foo searches for all notes whose body contains “foo”.
body:“foo bar” searches for all notes whose body contains both “foo” and “bar”.
body:foo -body:bar searches for all notes whose body contains “foo” but not “bar”.
|tag:||Searches for notes that have the specified tags. Allows boolean search.||
tag:office searches for all notes having tag office.
tag:office tag:important searches for all notes having both office and important tags.
tag:office -tag:spam searches for notes having tag office which do not have tag spam.
tag:be*ful does a search with wildcards.
|Notes with or without tags||
tag:* notes with tags.
-tag:* notes without tags
|notebook:||Searches for notes that belong to the specified notebooks. Multiple notebooks can also be specified since they are connected by or always (ignoring the
notebook:goals limits the search scope within notebook goals and all its sub notebooks.
notebook:the*lord does a wildcard search.
|Searches for notes created/updated before/after date specified using YYYYMMDD format. We can also search relative to the current day, week, month or year.||
created:20201218 will return notes created on or after December 18, 2020.
-updated:20201218 will return notes updated before December 18, 2020.
created:20200118 -created:20201215 will return notes created between January 18, 2020 and before December 15, 2020.
created:202001 -created:202003 will return notes created on or after January and before March 2020.
updated:1997 -updated:2020 will return all notes updated between the years 1997 and 2019.
created:day-2 searches for all notes created in the past two days.
updated:year-0 searches all notes updated in the current year.
|type:||Searches for notes or todos.||
type:note to return all notes
type:todo to return all todos
|iscompleted:||Filter on completed or uncompleted todos||
iscompleted:1 to return all completed todos
iscompleted:0 for uncompleted todos
|Filter by location||latitude:40 -latitude:50 filters notes with latitude >= 40 and < 50|
|resource:||Filter by attachment MIME type||
resource:image/jpeg to get all notes with a jpeg attachment.
-resource:application/pdf to get notes without a pdf attachment.
resource:image/* to get notes with any type of images.
|sourceurl:||Filter by source URL||
sourceurl:https://www.google.com You can also use wildcards
Note: In CliClient you would need to escape the query using
-- when using negated filters.
:search -- "-tag:tag1".