Jason Wasem
ee6f988c35
refactor(search): simplify null check and use join for text concatenation
...
根据代码审查建议优化代码:
- 移除多余的 `elements &&` 检查,因为 Array.isArray() 本身可处理 null/undefined
- 使用 `join(" ")` 替代 `toString()` 以确保文本元素用空格分隔,更适合全文搜索
- 移除显式类型声明,让 TypeScript 自动推断
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 10:01:13 +08:00
Jason Wasem
ecb972c71c
fix(search): add null check for canvas elements in fulltext search
...
添加对 Canvas 笔记 elements 字段的空值检查,防止当 elements 为 null 或非数组时搜索功能报错。
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 00:42:12 +08:00
Elian Doran
5df539f0a4
refactor(dayjs): relocate all plugins and imports to commons
2025-12-03 20:44:48 +02:00
perfectra1n
e89646ee7c
fix(quick_search): centralize the repeated exactWordMatch function, per Gemini's suggestion
2025-11-12 16:49:43 -08:00
perfectra1n
dee8c115ab
fix(quick_search): resolve word issues to not trigger substring matches
2025-11-12 16:43:59 -08:00
perf3ct
2a0472ae42
fix(search): resolve compilation issue due to variables with the same name
Checks / main (push) Has been cancelled
2025-11-03 11:44:43 -08:00
perf3ct
8e227a6146
fix(search): make sure to highlight exact search results too
Checks / main (push) Has been cancelled
2025-10-21 14:35:31 -07:00
perf3ct
fb0d971e48
fix(search): also support exact phrase matching such as ='test phrase'
2025-10-21 10:12:14 -07:00
perf3ct
4fa4112840
feat(search): also support the use of ="exact match search string"
2025-10-10 12:23:57 -07:00
perf3ct
50f0b88eff
fix(search): resolve issue when using = operator in search
2025-10-10 09:51:52 -07:00
perf3ct
93c5413790
feat(quick_search): also allow for the equals operator in note title's quick search
2025-08-24 18:53:05 +00:00
perf3ct
d971554201
feat(quick_search): also show the tags/attributes in quick search results
2025-08-18 03:20:04 +00:00
perf3ct
bbf8d757cd
feat(quick_search): format multi-line results better
2025-08-16 19:16:27 +00:00
perf3ct
5b669ca287
feat(search): also implement defensive checks for undefined notes
2025-08-10 21:59:20 +00:00
perf3ct
583ab8dc92
feat(quick_search): make sure that we rank exact matches higher when merging results with fuzzy search
2025-08-03 21:29:18 +00:00
perf3ct
22740a6c8d
feat(quick_search): add tests for updated fuzzy search progressive fuzzy search functionality
2025-08-03 21:02:56 +00:00
perf3ct
e9409577db
feat(quick_search): only "fallback" to fuzzy search, if there aren't that many search results found from user's query
2025-08-03 20:43:16 +00:00
perf3ct
057040af06
feat(quick_search): limit the size of the Notes to search through, to 2MB
2025-08-03 19:49:43 +00:00
perf3ct
c603783a44
feat(quick_search): show the "matched" text in the search results, even if "edit distance" (misspelling) occurs
2025-08-03 19:49:43 +00:00
perf3ct
1928356ad5
feat(quick_search): edit distance searching in quick search works
2025-08-03 19:49:43 +00:00
perfectra1n
2d358342c5
feat(client): try to stylize the quick search even further in the client
2025-08-02 23:44:51 -07:00
perf3ct
6c79be881d
feat(search): allow for search through very large notes
2025-08-03 01:44:55 +00:00
perf3ct
c436455b32
feat(tests): implement tests for updated fuzzy search operators, and text_utils used in search
2025-08-03 00:16:47 +00:00
perf3ct
18f89b979d
feat(search): normalize search text (fonts, etc.)
2025-08-02 23:59:45 +00:00
perf3ct
8094259c78
feat(search): implement edit_distances (misspelling tolerances) into fulltext search
2025-08-02 23:59:21 +00:00
perf3ct
b4f503b81e
feat(search): implement additional operators (with bounds) for search comparison
2025-08-02 23:59:11 +00:00
perf3ct
4db04519bd
feat(search): implement additional weights for search_results, normalize text as well
2025-08-02 23:56:23 +00:00
Elian Doran
ff106e21cf
chore(server): fix more type errors
2025-05-28 19:57:55 +03:00
Elian Doran
ba7c93967e
chore(server): fix some type errors
2025-05-28 19:03:53 +03:00
Elian Doran
b2af043110
chore(nx/server): move source code
2025-04-22 17:16:41 +03:00
Elian Doran
62dbcc0a2e
chore(nx): move all monorepo-style in subfolder for processing
2025-04-22 10:06:06 +03:00
Elian Doran
3ddc8e5e7b
chore(monorepo/server): fix imports for becca mocking
2025-04-18 12:43:19 +03:00
Elian Doran
a59954eb17
chore(monorepo/server): rows import
2025-04-18 12:34:27 +03:00
Elian Doran
5058891af8
chore(monorepo/server): move server-side source code
2025-04-18 12:09:56 +03:00