Advanced search: operators, tag/notebook filters, saved searches #2

Closed
opened 2026-11-23 21:02:40 +00:00 by jonasled · 0 comments
Owner

Problem

Search is a plain case-insensitive substring match on title and body. With a few thousand notes it is hard to narrow results.

Idea

  • Operators in the search box (like Joplin): tag:work, notebook:"Project X", title:, body:, -term to exclude, "exact phrase", type:todo, iscompleted:0, created:20260101, updated:-7d, any:1.
  • Rank results (title hit > body hit, recent first) and show a snippet with the match highlighted in the note list.
  • Saved searches shown in the sidebar (stored as items of a new type or in notebook meta so they sync).
  • Search inside end-to-end encrypted notes keeps working because it runs on the client over the decrypted local copy; keep it that way.
  • Performance: build a small in-memory inverted index in a Web Worker so typing stays smooth for large libraries.

Notes

fuzzy is already used by the quick switcher; the parser could live in frontend/src/lib/search.ts with unit tests for the operators.

## Problem Search is a plain case-insensitive substring match on title and body. With a few thousand notes it is hard to narrow results. ## Idea - Operators in the search box (like Joplin): `tag:work`, `notebook:"Project X"`, `title:`, `body:`, `-term` to exclude, `"exact phrase"`, `type:todo`, `iscompleted:0`, `created:20260101`, `updated:-7d`, `any:1`. - Rank results (title hit > body hit, recent first) and show a snippet with the match highlighted in the note list. - Saved searches shown in the sidebar (stored as items of a new type or in notebook meta so they sync). - Search inside end-to-end encrypted notes keeps working because it runs on the client over the decrypted local copy; keep it that way. - Performance: build a small in-memory inverted index in a Web Worker so typing stays smooth for large libraries. ## Notes `fuzzy` is already used by the quick switcher; the parser could live in `frontend/src/lib/search.ts` with unit tests for the operators.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonasled/notes#2
No description provided.