From 4c8295291a47514e97c3c9dd4c86ee5115b43a0e Mon Sep 17 00:00:00 2001 From: Etienne Posthumus Date: Thu, 8 Feb 2024 15:49:17 +0100 Subject: [PATCH] Bump FTS INDEX_BUF_SIZE --- src/app/fts.py | 2 +- src/app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/fts.py b/src/app/fts.py index 9056056..da39311 100644 --- a/src/app/fts.py +++ b/src/app/fts.py @@ -15,7 +15,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS literal_index_spellfix USING spellfix1; """ -INDEX_BUF_SIZE = 9999 +INDEX_BUF_SIZE = 999999 def search(q: str): diff --git a/src/app/main.py b/src/app/main.py index baa290a..aba15f9 100644 --- a/src/app/main.py +++ b/src/app/main.py @@ -23,7 +23,7 @@ FTS_FILEPATH, ) import httpx -import logging, os, json, io, time, random +import logging, os, json, io, time, random, sys from typing import Optional from urllib.parse import quote, parse_qs import pyoxigraph as px