[Bug]: Appending unchanged FAQ entries rebuilds their indexes and can interrupt retrieval
Affected component
Backend Service & API, FAQ knowledge bases
Reproduction and observed behavior
Import eight FAQ entries and submit the identical entries again in append mode. The second job reported eight merges and zero skips, and all eight metadata versions increased from 1 to 2. The merge planner compares the content hash, enabled state and flags with a query projection containing only the ID and metadata.
In a separate run I repeated the unchanged import while the embedding service was temporarily offline. The eight FAQ records remained in PostgreSQL, but their index rows fell from eight to zero. After the embedding service recovered, the affected question returned no result while a control question in the same knowledge base remained searchable. The next successful import retry restored all eight indexes.
An identical append should report the entries as skipped and preserve their versions and searchable indexes, including while the embedding service is unavailable. Genuine answer or operational-field changes should still apply.
Environment
WeKnora Standard v0.9.1 (commit 71c32af), Linux arm64 containers on macOS, PostgreSQL with ParadeDB, Redis/Asynq and a local embedding model. Requests went directly to the backend API.