Fuzzy Search #592

Closed
opened 2025-10-01 15:53:10 -05:00 by giteasync · 3 comments
Owner

Originally created by @grschafer on GitHub.

Describe feature

First off, thanks for making this tool, it's really neat and useful!

I'm new to Trilium and discovered it from this reddit post when trying to find a note-taking tool for organizing D&D notes. That reddit post mentioned a feature:

Fast fuzzy search & advanced search (search by tags, parent note, size, etc)

But I can't seem to find the fuzzy search functionality or how to enable it. My specific problem is that I'm taking notes while listening, and there are a lot of names of places/people/things that I'm making a best guess at the spelling, and the pronunciation/spelling isn't always consistent across many sessions/months. So, having a search function that gives results in spite of typos or spelling variations would be handy. Does something like this exist in trilium that I've missed?

As a separate thought (maybe should be a separate issue), semantic or embeddings-based search could also be quite handy, e.g. to return results that are synonyms or have similar meanings to the search query (e.g. searching for "town" would return results containing "city", "hamlet", "village").

Additional Information

No response

Originally created by @grschafer on GitHub. ### Describe feature First off, thanks for making this tool, it's really neat and useful! I'm new to Trilium and discovered it from [this reddit post](https://www.reddit.com/r/selfhosted/comments/1ed8h9c/triliumnext_notes_the_last_note_taking_app_you/) when trying to find a note-taking tool for organizing D&D notes. That reddit post mentioned a feature: > Fast fuzzy search & advanced search (search by tags, parent note, size, etc) But I can't seem to find the fuzzy search functionality or how to enable it. My specific problem is that I'm taking notes while listening, and there are a lot of names of places/people/things that I'm making a best guess at the spelling, and the pronunciation/spelling isn't always consistent across many sessions/months. So, having a search function that gives results in spite of typos or spelling variations would be handy. Does something like this exist in trilium that I've missed? As a separate thought (maybe should be a separate issue), semantic or embeddings-based search could also be quite handy, e.g. to return results that are synonyms or have similar meanings to the search query (e.g. searching for "town" would return results containing "city", "hamlet", "village"). ### Additional Information _No response_
Author
Owner

@eliandoran commented on GitHub:

@grschafer , unfortunately Trillium doesn't really have fuzzy search. The search is quite advanced in its filtering capabilities and it can detect out-of-order searches, but unfortunately it cannot correct for typos or synonyms.

The problem with searching with synonyms is that it would require a dictionary, which can be a bit problematic.

We might consider adding support at least for fuzzy search in the future.

@eliandoran commented on GitHub: @grschafer , unfortunately Trillium doesn't really have fuzzy search. The search is quite advanced in its filtering capabilities and it can detect out-of-order searches, but unfortunately it cannot correct for typos or synonyms. The problem with searching with synonyms is that it would require a dictionary, which can be a bit problematic. We might consider adding support at least for fuzzy search in the future.
Author
Owner

@eliandoran commented on GitHub:

Done in https://github.com/TriliumNext/Trilium/pull/6536.

@eliandoran commented on GitHub: Done in https://github.com/TriliumNext/Trilium/pull/6536.
Author
Owner

@dosubot[bot] commented on GitHub:

Trilium's search supports advanced filtering, substring matching, regular expressions, and out-of-order term detection, but it does not currently offer fuzzy search or typo-tolerant search—search terms must match exactly. There is a feature request for fuzzy search in the repository (see issue #3642), but it hasn't been implemented yet. Semantic or synonym-based search is also not available, though there is some community interest in future AI/semantic features (see discussion). The only fuzzy-like feature is a "Similar notes" sidebar widget, which matches note titles but not content or attributes (see discussion). No plugins or extensions currently add fuzzy or semantic search capabilities.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub: <!-- Answer --> Trilium's search supports advanced filtering, substring matching, regular expressions, and out-of-order term detection, but it does not currently offer fuzzy search or typo-tolerant search—search terms must match exactly. There is a feature request for fuzzy search in the repository [(see issue #3642)](https://github.com/TriliumNext/Trilium/issues/3642), but it hasn't been implemented yet. Semantic or synonym-based search is also not available, though there is some community interest in future AI/semantic features [(see discussion)](https://github.com/TriliumNext/Trilium/issues/6246). The only fuzzy-like feature is a "Similar notes" sidebar widget, which matches note titles but not content or attributes [(see discussion)](https://github.com/TriliumNext/Trilium/issues/1157). No plugins or extensions currently add fuzzy or semantic search capabilities. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b033f639-97ca-4815-9421-497f203a6131?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/4af773a7-9840-4978-96dc-c436f6f437cf/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/TriliumNext/Trilium/issues/5518)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#592
No description provided.