From a1cea5487e07fca3a3f10ea463e679200f2d62dd 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 37685e5f61..d8b879d04b 100644 --- a/pods/fulltext/src/server.ts +++ b/pods/fulltext/src/server.ts @@ -276,6 +276,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) {