Skip to content

✨ exclude deleted bookmarks from search results - #115

Merged
DGuang21 merged 6 commits into
mainfrom
feature/exclude-deleted-bookmarks-from-search-v2
Sep 9, 2026
Merged

DGuang21 merged 6 commits into
mainfrom
feature/exclude-deleted-bookmarks-from-search-v2

Conversation

@Whyjsee

@Whyjsee Whyjsee commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Filter out bookmarks in trash (deleted_at IS NOT NULL) from search candidates
  • Add validBookmarkIds check in getUserBookmarkItem to filter both vector shard and fulltext row data
  • Add deleted_at IS NULL filter to getBookmarkVectorShard and getUserBookmarkIds
  • Add clearSearchCache to SearchService, called synchronously after bookmark create/delete/trash/restore

Test plan

  • Verified via local search API that a bookmark moved to trash no longer appears in search results
  • Verified full-text and vector search candidate sets both respect the filter

- Add validBookmarkIds filter to getUserBookmarkItem
- Filter deleted bookmarks in getBookmarkVectorShard and getUserBookmarkIds
- Ensure search results only include active bookmarks (deleted_at IS NULL)
- Add clearSearchCache to SearchService, clears all 3 search KV cache keys
- Call it synchronously after create, delete, trash, and restore bookmark
@Whyjsee
Whyjsee requested a review from DGuang21 September 9, 2026 01:04
@Whyjsee Whyjsee changed the title Exclude deleted bookmarks from search results exclude deleted bookmarks from search results Sep 9, 2026
@Whyjsee

Whyjsee commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

…ed-bookmarks-from-search-v2

# Conflicts:
#	src/infra/repository/dbBookmark.ts

Co-authored-by: Whyjsee <7569533+Whyjsee@users.noreply.github.com>

Copilot AI commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved in 963641b.

@Whyjsee Whyjsee changed the title exclude deleted bookmarks from search results ✨ exclude deleted bookmarks from search results Sep 9, 2026
@DGuang21
DGuang21 merged commit d013a53 into main Sep 9, 2026
1 check passed
@DGuang21
DGuang21 deleted the feature/exclude-deleted-bookmarks-from-search-v2 branch September 9, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants