@hatk/hatk 0.0.1-alpha.31 → 0.0.1-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -10
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -14,7 +14,7 @@ import { log } from "./logger.js";
|
|
|
14
14
|
import { loadConfig } from "./config.js";
|
|
15
15
|
import { loadLexicons, storeLexicons, discoverCollections, buildSchemas } from "./database/schema.js";
|
|
16
16
|
import { discoverViews } from "./views.js";
|
|
17
|
-
import { initDatabase, getCursor, querySQL, getSqlDialect, getSchemaDump, migrateSchema
|
|
17
|
+
import { initDatabase, getCursor, querySQL, getSqlDialect, getSchemaDump, migrateSchema } from "./database/db.js";
|
|
18
18
|
import { createAdapter } from "./database/adapter-factory.js";
|
|
19
19
|
import { getDialect } from "./database/dialect.js";
|
|
20
20
|
import { setSearchPort } from "./database/fts.js";
|
|
@@ -147,15 +147,9 @@ const backfillOpts = {
|
|
|
147
147
|
function runBackfillAndRestart() {
|
|
148
148
|
runBackfill(backfillOpts)
|
|
149
149
|
.then(async (recordCount) => {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
await rebuildAllIndexes(collections);
|
|
154
|
-
log('[main] FTS indexes ready');
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
log('[main] Backfill complete (FTS updated incrementally)');
|
|
158
|
-
}
|
|
150
|
+
log('[main] Backfill complete, building FTS indexes...');
|
|
151
|
+
await rebuildAllIndexes(collections);
|
|
152
|
+
log('[main] FTS indexes ready');
|
|
159
153
|
return recordCount;
|
|
160
154
|
})
|
|
161
155
|
.then((recordCount) => {
|