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 0c9e58f85b
commit c84f825003
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

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