From c84f8250037e6ce1f57ee6faa4c7872849e5cf57 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Thu, 6 Mar 2025 00:49:17 +0700 Subject: [PATCH] Fix create of elastic index Signed-off-by: Andrey Sobolev --- pods/fulltext/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pods/fulltext/src/server.ts b/pods/fulltext/src/server.ts index ecfb021e04..ad79b53b2b 100644 --- a/pods/fulltext/src/server.ts +++ b/pods/fulltext/src/server.ts @@ -278,6 +278,8 @@ export async function startIndexer ( ) const fulltextAdapter = await opt.config.fulltextAdapter.factory(opt.config.fulltextAdapter.url) + await fulltextAdapter.initMapping(ctx) + const shutdownInterval = setInterval(() => { for (const [k, v] of [...indexers.entries()]) { if (v instanceof Promise) {