Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(search): stop claiming provider health is consumed

Yudhi Armyndharis87b8ac584a7c
diff --git a/src/modules/search/providers/builtin-fts.provider.ts b/src/modules/search/providers/builtin-fts.provider.ts
index 4a6eee06e..979bde266 100644
--- a/src/modules/search/providers/builtin-fts.provider.ts
+++ b/src/modules/search/providers/builtin-fts.provider.ts
@@ -252,7 +252,7 @@ export class BuiltInFtsProvider implements SearchProvider, OnModuleInit {
async health(): Promise<{ ok: boolean; detail?: string }> {
// Reflects FTS availability (not just raw connectivity): a non-FTS5 build reports unhealthy here
- // so /health and the registry surface the true state. DB errors still map to { ok: false }.
+ // for callers of health(). DB errors still map to { ok: false }.
try {
const ok = await this.probeFts();
return { ok, detail: ok ? undefined : 'full-text index absent' };
diff --git a/src/modules/search/search.module.ts b/src/modules/search/search.module.ts
index a9d4fd8e2..8c38316a3 100644
--- a/src/modules/search/search.module.ts
+++ b/src/modules/search/search.module.ts
@@ -16,7 +16,8 @@ import { PLUGIN_SEARCH_REGISTRY_PORT } from '../../core/plugins/plugin-host-port
* from `SEARCH_ENABLED=false`, which omits the module entirely (route 404).
*
* The module is imported by AppModule only when `SEARCH_ENABLED !== 'false'`. Plugin providers
- * (Spec 2) will register themselves the same way and `auto` will select a healthy plugin over builtin.
+ * register themselves through the same registry; in `auto` mode the most recently registered plugin
+ * supersedes builtin (no health gating).
*/
export function bootstrapSearchProviders(
registry: SearchProviderRegistry,