From 25a9ad2fed5c5916898987ad10f4d36c89b41ad7 Mon Sep 17 00:00:00 2001 From: Martin Heppner <105971399+martinheppner@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:04:17 +0100 Subject: [PATCH] Activate temp_tour_full_text --- src/jobs/sync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobs/sync.js b/src/jobs/sync.js index 14ecef5..b8c083e 100644 --- a/src/jobs/sync.js +++ b/src/jobs/sync.js @@ -885,8 +885,8 @@ export async function syncTours(){ await knex.raw(`UPDATE kpi SET VALUE=0 WHERE name='total_tours';`); // This is to store away the vectors. If full_text is not changed, we do not have to recalculate them. - // await knex.raw(`DROP TABLE IF EXISTS temp_tour_full_text;`); - // await knex.raw(`CREATE TABLE temp_tour_full_text AS SELECT id, full_text, ai_search_column FROM tour WHERE ai_search_column IS NOT NULL;`); + await knex.raw(`DROP TABLE IF EXISTS temp_tour_full_text;`); + await knex.raw(`CREATE TABLE temp_tour_full_text AS SELECT id, full_text, ai_search_column FROM tour WHERE ai_search_column IS NOT NULL;`); // Table tours will be rebuild from scratch await knex.raw(`TRUNCATE tour;`);