Skip to content

feat: add context_chat:reindex to re-seed the crawl on demand#246

Open
bygadd wants to merge 1 commit into
nextcloud:mainfrom
bygadd:feat/context-chat-recrawl-command
Open

feat: add context_chat:reindex to re-seed the crawl on demand#246
bygadd wants to merge 1 commit into
nextcloud:mainfrom
bygadd:feat/context-chat-recrawl-command

Conversation

@bygadd

@bygadd bygadd commented Jun 17, 2026

Copy link
Copy Markdown

Follow-up to #244. The SchedulerJob β†’ StorageCrawlJob β†’ IndexerJob chain is seeded only by the <install> repair step and removes itself after the initial crawl, so there's no way to re-enumerate mounts without reinstalling the app β€” e.g. when the app is installed on an instance whose files predate it, or to recover a crawl that didn't finish.

This adds an occ context_chat:reindex command that re-adds SchedulerJob, guarded so it's a no-op when one is already scheduled. Already-indexed files are skipped (the queue de-duplicates), so it's safe to run repeatedly.

(Disclosure: AI-assisted; verified on a live deployment.)

The SchedulerJob -> StorageCrawlJob -> IndexerJob chain is seeded only by the
<install> repair step and self-removes after the initial crawl, so there is no
way to re-enumerate mounts without reinstalling the app (e.g. after installing
on an instance whose files predate the app, or to recover an incomplete crawl).
Add an occ command that re-adds SchedulerJob (no-op if already scheduled);
already-indexed files are skipped by the queue de-duplication.

Refs nextcloud#244

Signed-off-by: Yoan Bozhilov <bygadd@gmail.com>
Assisted-by: Claude Code:claude-opus-4-8
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