Skip to content

fix: delete index entry when document is not found - #66

Merged
aletail merged 4 commits into
mainfrom
hotfix/3.1.3/update-index-delete
Jul 1, 2026
Merged

fix: delete index entry when document is not found#66
aletail merged 4 commits into
mainfrom
hotfix/3.1.3/update-index-delete

Conversation

@aletail

@aletail aletail commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

fix: delete index entry when document is not found

Testing Steps

Git Flow

  • DO NOT delete "release/*" or "hotfix/*" branches after merging a PR. These are used to publish the next release, and they are deleted automatically.
  • "Squash and merge" is good on "feature/*" into "develop"
  • "Create a merge commit" is good on "release/*" or "hotfix/*" into "main"

github-actions Bot and others added 4 commits June 17, 2026 13:26
When `updateIndex()` is called and the document content for an item can no longer be retrieved, delete its entry from the search index. This prevents stale or 'ghost' entries from remaining in the index that point to non-existent or empty content.
@aletail
aletail requested a review from tiller1010 June 30, 2026 20:11
@aletail aletail added the patch label Jun 30, 2026

@tiller1010 tiller1010 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@aletail
aletail merged commit 098833f into main Jul 1, 2026
3 checks passed
@github-actions
github-actions Bot deleted the hotfix/3.1.3/update-index-delete branch July 1, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants