Search: remove documents from index on version/project deletion #13

Closed
opened 2026-02-02 22:57:18 +01:00 by qwc · 0 comments
Owner

When a version or project is deleted via the admin UI, the corresponding documents remain in the Bleve search index. DeleteVersion exists in internal/docs/indexer.go but is not called from the delete handlers.

What needs to happen:

  • Call searchIndex.DeleteVersion() in handleAdminDeleteProject (for all versions) and any version delete handler
  • Ensure the index stays consistent with the actual stored docs
When a version or project is deleted via the admin UI, the corresponding documents remain in the Bleve search index. `DeleteVersion` exists in `internal/docs/indexer.go` but is not called from the delete handlers. **What needs to happen:** - Call `searchIndex.DeleteVersion()` in `handleAdminDeleteProject` (for all versions) and any version delete handler - Ensure the index stays consistent with the actual stored docs
qwc closed this issue 2026-02-03 10:06:52 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
qwc-open/asiakirjat#13
No description provided.