Searching produces notes from subnotebooks as well

Operating system

Windows

Joplin version

3.1.24

Desktop version info

Joplin 3.1.24 (prod, win32)

Client ID: f35dc60744d84c70ac5bbd011d14f40e
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: d581264

Backup: 1.4.2
Favorites: 1.3.2
Rich Markdown: 0.15.0

What issue do you have?

I am trying to search for notes inside EvernoteImport notebook ignoring all its sub notebooks.
I am getting both notes from EvernoteImport notebook and its subnotebooks.
I and using the following search clause in global F6 search: notebook:EvernoteImport

Is this an expected behavior? If so - how to search inside a notebook ignoring its descendants?

It's an expected behavior as explained in Searching | Joplin where:

notebook:books limits the search scope within books and all its subnotebooks.

The only way I know of to ignore descendants is with the - operator. You can use a filter like -notebook:example in conjunction with notebook:books to exclude the example subnotebook. However, this can quickly become cumbersome.

A way to limit scope to a single notebook, whether it's a separate filter or the new default behavior of the notebook: filter, would be nice to have.

It could also work with other feature requests like this one: Checkbox next to search bar to limit search to current folder

2 Likes