Tom Moor
36f5ce26e2
fix: Search rank ordering ( #11599 )
...
* fix: Search ranking
* test
2026-02-27 20:43:56 -05:00
Tom Moor
10303220a5
Public docs search should not include internal popularity score ( #11598 )
2026-02-27 20:25:50 -05:00
Tom Moor
6695ae1f3e
Reduce popularity boost in search results ( #11481 )
2026-02-17 18:51:46 -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
Tom Moor
bf45e97641
chore: Enforce type import consistency ( #10968 )
...
* Update types
* fix circular dep
* type imports
* lint type imports and --fix
2025-12-19 23:07:02 -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 and Copilot
b51692cdc5
feat: Add popularity scoring ( #10721 )
...
* Simple first pass
* Use findAllInBatches
* Add comments,views,revisions
* Add 'popular' tab to Home
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Add 'Popular' tab to collections
* Boost search results based on popularityScore
* Move to unlogged temp table
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-25 13:11:05 +01:00
Hemachandar and Tom Moor
d3eb3db7ba
feat: Public sharing of collections ( #9529 )
...
* shares.info, collections.info, documents.info
* shares.list, shares.create, shares.update
* shares.sitemap
* parity with existing document shared screen
* collection share popover
* parent share and table
* collection scene
* collection link in sidebar
* sidebar and breadcrumb collection link click
* collection link click in editor
* meta
* more meta + 404 page
* map internal link, remove showLastUpdated option
* fix shares.list pagination
* show last updated
* shareLoader tests
* lint
* sidebar context for collection link
* badge in shares table
* fix existing tests
* tsc
* update failing test snapshot
* env
* signed url for collection attachments
* include collection content in SSR for screen readers
* search
* drafts can be shared
* review
* tsc, remove old shared-doc scene
* tweaks
* DRY
* refactor loader
* Remove share/collection urls
* fix: Collection overview should not be editable when viewing shared link and logged in
* Tweak public breadcrumb
* fix: Deleted documents should never be exposed through share
* empty sharedTree array where includeChildDocuments is false
* revert includeChildDocs guard for logical correctness + SSR bug fix
* fix: check document is part of share
---------
Co-authored-by: Tom Moor <tom@getoutline.com >
2025-08-03 13:07:39 -04: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
6dfc75f090
perf: Some small performance improvements in SearchHelper ( #9580 )
2025-07-08 22:19:02 +00: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
3f8bdf7ac2
Refactor withMembershipScope ( #9134 )
2025-05-04 18:37:01 -04:00
Tom Moor
9c4b4f4989
fix: Chained scopes overwrite ( #9133 )
2025-05-04 22:16:38 +00:00
Tom Moor
fd3c21d28b
Remove withCollectionPermissions scope ( #9124 )
...
* Remove withCollectionPermissions scope
* defaultScopeWithUser -> withUserScope
* fix: Include withDrafts in groupMemberships.list
* rename
2025-05-03 12:00:54 -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
50f9f414bf
fix: Slim stop-word list, related #8395
2025-02-23 17:26:57 -05:00
Tom Moor
854fbca420
fix: Improve matching on quoted queries
2025-02-12 21:32:30 -05:00
Tom Moor
b58671cbd1
Exclude state column by default in document queries ( #8139 )
...
* Exclude state column by default in document queries
* restore withoutState scope
2024-12-26 03:30:48 -08: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
9680e57849
chore: Remove suppressImplicitAnyIndexErrors TS rule ( #7760 )
2024-10-11 12:46:46 -07:00
Tom Moor
a0e363799c
fix: Add extra safety around search queries
2024-10-07 22:29:54 -04:00
Tom Moor
9b24482c46
fix: Prevent ISE when searched query contains colon, closes #7481
2024-09-03 08:24:33 -04: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
d51267b8bc
JSON to client ( #5553 )
2024-05-24 05:29:00 -07:00
Tom Moor
958cf45d74
Support for filter by parent document ( #6850 )
...
* Backend support for filter by parent document
* parentDocumentId -> documentId
2024-04-25 19:44:15 -07:00
Tom Moor
3825bc4181
Improve the quality of snippets for search results ( #6828 )
...
* Improve the quality of snippets for search results
* Prefer full match
* tweak highlight regex
2024-04-22 04:40:13 -07:00
Tom Moor
21537b069b
Special-case searching for urls as these are not indexed in whole by postgres.
...
closes OLN-276
2024-04-21 11:51:52 -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
Tom Moor
9436c82ceb
Alt fix
2024-02-24 17:02:51 -05:00
Tom Moor
0484941158
fix: Filter drafts by default, related #6537
2024-02-24 16:39:54 -05: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
83416530c1
fix: Search query with colon in quotes causes server error
...
closes #6542
2024-02-16 12:31:51 -05:00
Tom Moor
391814a54e
fix: Improve multi-partial word matching in search
2024-02-02 08:58:51 -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
faf97401e6
feat: add "Copy document" dialog ( #6009 )
2023-10-16 16:13:57 -07:00
Tom Moor
74722b80f2
chore: Refactor file storage ( #5711 )
2023-08-20 07:04:34 -07:00
Tom Moor
b7bfc4bb1a
chore: Remove optimize imports to allow vite upgrade ( #5691 )
2023-08-14 11:44:58 -07:00
Tom Moor
5dcd7a74ca
fix: Remove no longer required unescaping, closes #5555
2023-07-14 21:46:31 -04:00
Apoorv Mishra and Tom Moor
86062f396d
Deleting a collection should detach associated drafts from it ( #5082 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2023-04-23 12:20:44 -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
0a68266365
fix: Server error in document search with single quotes
2022-12-04 17:10:06 -05:00
Tom Moor
a5e2ac6570
fix: Negated quote query error
2022-11-28 09:01:03 -05:00
Tom Moor
d22b44dcff
Further improved search matches
2022-11-27 10:46:54 -05:00