Fix create of elastic index

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-03-06 00:49:17 +07:00
parent 88813b5e5b
commit a1cea5487e
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -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) {