SearchIndex.filecheck silently skips files previously marked as ERROR
When a document fails to parse during indexing (for instance, due to a transient network failure like a 429 from a metadata provider), it gets marked with the ERROR status.
However, in subsequent index runs using the same .pqa directory, SearchIndex.filecheck treats files marked as ERROR as already processed. It skips them entirely, but it does so silently—without emitting any log line or warning.
To the user, the pqa index run appears to complete successfully, and it looks like all files in the directory are indexed. There's no indication that a file previously failed and is now permanently omitted from the index.
Why this is an issue: Transient failures (like HTTP timeouts or rate limits) cause documents to drop out of the index forever. The user is never reminded to retry or that their index is incomplete.
Proposed fix:
At a minimum, filecheck should log a clear logging.warning when it skips a file due to a prior ERROR state. Alternatively (and perhaps ideally), it should automatically re-attempt to process files that are in an ERROR state on subsequent runs, under the assumption that transient issues might have resolved.
(Note: I briefly mentioned this behavior at the bottom of #1353, but opening this dedicated issue as promised to track it separately).
Source: Future-House/paper-qa