Tom Moor
36f5ce26e2
fix: Search rank ordering ( #11599 )
...
* fix: Search ranking
* test
2026-02-27 20:43:56 -05:00
Salihu and Tom Moor
30fff9b070
feat: Sort on search screen ( #11242 )
...
* sort document searches
* remove tests
* add tests
* minor fix
* suggested changes
* requested changes
* minor fixes
* fix broken tests
* Style tweaks
---------
Co-authored-by: Tom Moor <tom@getoutline.com >
2026-01-28 23:12:33 -05:00
d02f35b770
Fix collection filter returning documents from all collections when no search query ( #10775 )
...
* Initial plan
* Fix search filtering by collection to exclude other collections
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com >
* Add API-level test for collection filtering without search term
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com >
* fix: Private collections
* refactor
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com >
Co-authored-by: Tom Moor <tom@getoutline.com >
2025-12-03 20:49:57 -05:00
Tom Moor
c678701bd0
fix: Documents accessible only through group memberships do not appear in search results ( #9738 )
...
* first pass
* Add falsy test case coverage
2025-07-26 12:31:11 -04:00
Tom Moor and google-labs-jules[bot]
5b7a5d751c
Fix: Properly escape backslashes in search queries ( #9297 )
...
* Fix: Properly escape backslashes in search queries
This commit fixes a bug where backslashes in search queries were not properly escaped, leading to database errors.
The `escapeQuery` method is now applied to quoted queries and URLs to ensure that all parts of the search query are correctly escaped.
A test case has been added to verify that searching with backslashes works as expected.
* Fix: Properly escape backslashes in search query URLs
This commit fixes a bug where backslashes in URLs within search queries were not properly escaped, leading to database errors.
The `escapeQuery` method is now applied to `likelyUrls` before they are used in `iLike` conditions.
Quoted queries were found to be already escaped and are no longer double-escaped.
The existing test case for searching with backslashes remains relevant for verifying URL escaping.
* lint
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-05-24 11:30:00 -04:00
Tom Moor
7e05fc1017
Revert "Add recency boost to search results ( #9038 )" ( #9065 )
...
This reverts commit 2bc47cfcef .
2025-04-26 16:44:49 +00:00
Tom Moor
2bc47cfcef
Add recency boost to search results ( #9038 )
...
* Add recency boost to search helpers
* Restore tests
* Use boost
2025-04-26 08:27:45 -04:00
YouLL and Tom Moor
d551a1a10b
feat: collection mentions ( #8529 )
...
* feat: init collection mention
* refactor: dedicated search helper function for collection mentions
* feat: add test for collection search function helper
* feat: parseCollectionSlug
* feat: isCollectionUrl
* feat: add collection mention to paste handler
* fix: update translation of mention keyboard shortcut
* fix: keyboard shortcut mention label
* fix: missing teamId in search helper functioN
* chore: update translations
---------
Co-authored-by: Tom Moor <tom@getoutline.com >
2025-03-03 19:03:27 -08:00
Tom Moor
854fbca420
fix: Improve matching on quoted queries
2025-02-12 21:32:30 -05:00
Hemachandar
c1c20f1ff9
feat: allow search without a search term ( #7765 )
...
* feat: allow search without a search term
* tests
* conditional filter visibility
* add icon to collection filter
2024-11-03 14:59:48 -08:00
Tom Moor
2a502e43ef
perf: Avoid count query in search where possible ( #7426 )
...
* Remove unused replacements
* perf: Avoid count query where possible
* logic
2024-08-20 18:59:32 -07:00
Apoorv Mishra
f56f240d9b
Remove trailing spaces from search query ( #7314 )
...
* fix: tsquery err
* fix: test
2024-07-26 20:27:56 -07:00
Tom Moor
c6408f7b3f
fix: CJK content results in long context strings in search results
...
closes #7183
2024-07-02 19:34:49 -04:00
Tom Moor
054bddb666
fix: Improved phrase matching in search ( #6800 )
...
* fix: Improved phrase matching in search
* test
2024-04-13 06:01:26 -07:00
Pranav Joglekar and Tom Moor
50b90b8878
improv: use statusFilter instead of includeArchive,includeDrafts for document search ( #6537 )
...
* improv: use statusFilter instead of includeArchive,includeDrafts for document search
* improv: update FilterComponent to add support for multiple selected items
* feat: update document type search ui
* fix test
* Restore support for old parameters to avoid breaking change
---------
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2024-02-24 11:02:19 -08:00
Tom Moor
69eb7b9db4
fix: Missing context in search results ( #6549 )
...
closes #6548
2024-02-16 09:34:05 -08:00
Tom Moor
69ecda387e
test
2024-02-02 09:01:18 -05:00
Apoorv Mishra and Tom Moor
1490c3a14b
Individual document sharing with permissions ( #5814 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Tom Moor <tom@getoutline.com >
2024-01-30 17:48:22 -08:00
Tom Moor
a53f304a9e
fix: Server error when search term contains double single quotes
2023-12-13 21:17:16 -05:00
Tom Moor
ec0564eb32
chore: Test performance ( #5786 )
2023-09-06 14:19:21 -07:00
Tom Moor
3eb947e9a5
chore: Improve perf of server tests ( #5785 )
2023-09-06 04:14:49 -07:00
Tom Moor
6efcf1c1a8
chore: Refactor SearchHelper internals
2023-01-02 20:14:46 -05:00
Tom Moor
82c565f1d4
Add additional filters to search_titles endpoint ( #4563 )
...
* Add additional filters to search_titles endpoint
* tests, fixes for drafts
* fix: dateFilter results in 500
* fix: Draft documents returned in collection-only search
2022-12-24 03:44:22 -08:00
Tom Moor
1e62d25861
Refactor document search
2022-10-30 12:41:52 -04:00