mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Mirror of https://github.com/zotero/zotero.git
With semantic search disabled, Best Match runs a purely lexical ranking: query terms are weighted by their rarity in the user's own library, any term can match (OR semantics), and items are scored by how much of the query they cover and where — titles count most, then abstracts, then fulltext, notes, and annotations. Consecutive query words also count as a unit: an item containing "special education" as a phrase ranks above one containing the words scattered, with the phrase's importance again measured by its rarity. Items whose evidence is a single matched unit that is common are not included (e.g. "fall of communism" -> do no list all items that just have "fall"). With semantic search enabled, both engines score every candidate and the two rankings are fused with Reciprocal Rank Fusion: an item can match by its words, by its meaning, or — ranking highest — by both. Results are the union of the two engines' matches, so a literal match the model doesn't understand and a paraphrase the words don't catch both surface. The relevance bar shows the item's strongest single piece of evidence, whichever engine found it. While the semantic index is still building or switching models, searches degrade to lexical ranking instead of showing nothing; the "not ready" error state is gone. Previews (the Search Results section) now explain the actual ranking for any matched item, not just attachments: excerpts of the item's own text around the literal matches, with the matched words highlighted. When semantic chunks are available they're shown too — with literal matches highlighted inside them — and merged with the lexical excerpts by evidence strength, deduplicating excerpts that show the same passage. |
||
|---|---|---|
| .github/workflows | ||
| app | ||
| chrome | ||
| defaults/preferences | ||
| document-worker@6d0c0ce45d | ||
| js-build | ||
| note-editor@acec74d09b | ||
| reader@c6edbfff75 | ||
| resource | ||
| scripts | ||
| scss | ||
| styles@dff7452b24 | ||
| test | ||
| translators@60f2d542ff | ||
| types/gecko | ||
| .babelrc | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| chrome.manifest | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| update.rdf | ||
| version | ||
Zotero
Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.
For more information on how to use this source code, see the Zotero documentation.