Smart:Search

AnkiWeb addon 1117931988

Adds ranked natural-language search to Anki Browser, using rarity-weighted matching, synonym cleanup, bounded feedback, native filters, note grouping, and score cutoffs.
AI-generated summary; may contain mistakes.

search

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (👍 0 · 👎 0)
Updated
2026-09-25
Anki versions
<=26.09
Description language
en

Maintenance

active

  • Last update or commit was 6 days before the snapshot (2026-09-25).
  • The repository has 1 test files.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
26.0526.092026-09-25
History across monthly snapshots

Loading…

Similar addons

Semantic search

Enables meaning-based natural-language card search via embeddings, with optional Claude reranking, smart multi-vector search, duplicate finding, suspend/unsuspend, scheduling, vignette, and guideline review tools.

aischedulingduplicatessearch

Rating 8 👍 8 · 👎 0 Anki 2.1.1~ Updated 2026-04-05
Smart Search

Finds Anki cards via natural-language local AI search, returning matching cards, copy-paste queries, related concepts, and optional picture or semantic search.

aisearch

Rating 1 👍 1 · 👎 0 ⭐ 1 Anki 2.1.2~ Updated 2026-06-27
Anki Semantic Search

Searches Anki notes by meaning with keyword, embedding, or hybrid retrieval, then generates cited AI answers using local or cloud providers.

aisearch

Rating 3 👍 3 · 👎 0 ⭐ 3 Anki 25.09.2~ Updated 2026-06-15
Chinese Word Synonyms

Shows synonyms from your own Anki collection during review, displaying known/total counts on front and a clickable synonym panel on back, configured via fields, delimiters, and offline index rebuild.

searchdictionary

Rating 1 👍 1 · 👎 0 ⭐ 1 Anki 25.09.2~ Updated 2026-09-07
Browser search result highlighter

Highlights browser search matches inside Anki notes, supports the full search language with auto-scroll, scrollbar indicators, code-view matches, and settings.

search

Rating 17 👍 17 · 👎 0 ⭐ 5 Anki 24.11~ Updated 2026-06-06

README

Smart:Search

An Anki Browser add-on that ranks notes by relevance to a natural-language query. The default release uses local lexical ranking and requires no external packages or model download.

Install

In Anki, open Tools → Add-ons → Get Add-ons and install the add-on using its AnkiWeb code once published. Restart Anki, open Browse, and prefix the main search with smart:. For example:

smart:Noncaseating granulomas + transmural inflammation + cobblestone mucosa

The Filters field accepts regular Anki search terms such as -flag:1 and is saved between Browser sessions. Without smart:, the main field keeps normal Anki search behavior.

Search behavior

  • Ranks the active collection and then intersects results with native Anki filters.
  • Scores notes rather than treating sibling cards as separate evidence.
  • Uses whole-token matching, curated synonyms, conservative typo correction, rarity weighting, and a bounded feedback pass.
  • Suppresses results below 15% of the top score. Scores are heuristics, not probabilities.
  • Does not modify notes, cards, or scheduling.

How it works

Smart:Search starts by looking across your notes for the ideas in your query. It cleans up the text, recognizes a few curated synonyms, and gives rarer terms more weight. That helps a distinctive clue count more than a common word.

Then it looks at how much of your query each note covers. Coverage is squared, so a note matching many of the query’s concepts gets favored over one matching only a small part. You can think of the exponent as sharpening that preference: partial matches lose ground, while strong, broad matches stand out. It isn’t literally turning scores into probabilities, though; these are relevance scores.

There’s also a feedback step. Smart:Search takes the strongest initial matches and looks for useful words they share that weren’t in your original query. It only keeps words that show up repeatedly in those strong notes and are unusually common there compared with the rest of the collection. Those words then give a small boost to notes that also contain them, helping surface related cards.

That second step is deliberately bounded. The new words can refine the ranking, but they can’t pull in an unrelated note by themselves. Finally, the results are filtered through Anki’s native filters, grouped around notes so sibling cards don’t count as separate evidence, and weak matches below the score cutoff are removed.

Smart:Search bubble diagram

Screenshots

Without Smart:Search: the regular query returns no cards.

Regular search with zero hits

How to use it: type smart: in the main Browser search field; put persistent native constraints in Filters.

Smart:Search input and Filters field

Ranked results: the expanded query finds related cards and shows them in the Browser.

Smart:Search ranked results

Compatibility and limits

This add-on targets current Anki desktop builds. Search indexes the collection synchronously each time, which may pause the Browser for large collections.

Development

The add-on package is built from the runtime files in smart_relevance_search/. The internal Anki add-on package folder remains smart_relevance_search for compatibility. See smart_relevance_search/README.md for implementation and validation notes. Tests are in tests/.

To build the AnkiWeb upload archive from the repository root:

mkdir -p release
(cd smart_relevance_search && zip -X -j ../release/Smart-Search.ankiaddon __init__.py engine.py semantic.py config.json)

The archive must contain the add-on files at its root; do not include the enclosing folder, __pycache__, backups, tests, or semantic dependencies. Then sign in to AnkiWeb's shared add-ons page, choose Upload, and upload the .ankiaddon file with the title, description, and compatibility details.

The source repository is Smart:Search on GitHub. The repository URL uses smart-search because GitHub repository names use URL-safe slugs.

No software license has been selected. Until one is added, the source is public for viewing, but reuse and redistribution are not granted.