Ga naar hoofdinhoud

CnSearchIndexStatus

The state of OpenRegister's search indexes: the tables in scope, the indexes on them, when maintenance last ran, and whether a rebuild locks a table. Read live from OpenRegister and never copied. The acts are named, not offered: a rebuild walks every table in scope and nothing stops one from a settings page, so the occ verbs are printed for somebody with a shell. A failed read is shown as the failure, not as a row of zeroes.

Props​

PropTypeDefaultDescription
sourceString'/apps/openregister/api/settings/search-index'The app path OpenRegister reports its indexes at
commandString'occ openregister:tables:search-index'The command named in the closing line

Helpers​

lastRunTime(report) reads OpenRegister's lastRun (a run report or []) as an ISO time or null; SEARCH_INDEX_COMMAND is the default command.

Example​

<CnSettingsSection :name="t('myapp', 'Search index')">
<CnSearchIndexStatus />
</CnSettingsSection>