Skip to content

Exclude deleted bookmarks from search results - #114

Closed
Whyjsee wants to merge 3 commits into
mainfrom
feature/exclude-deleted-bookmarks-from-search
Closed

Whyjsee wants to merge 3 commits into
mainfrom
feature/exclude-deleted-bookmarks-from-search

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

Test plan

  • Verified via local search API that a bookmark moved to trash no longer appears in search results after cache expiry
  • 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 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #115 — recreated from a clean main branch to remove stale cross-repo references.

@Whyjsee Whyjsee closed this Sep 8, 2026
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.

1 participant