Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,25 @@
install fts; -- once should be enough
load fts;
create or replace table texts as (from read_text('inv*.txt'));
pragma create_fts_index(
'texts', -- table name
'filename', -- column name
'content', -- column name of text
stemmer = 'english',
stopwords = 'none',
strip_accents = 1,
lower = 1, -- ignore case
overwrite = 1);
# Simple interface to match_bm25 for conjunctive queries:
create or replace function s(queryString) as table (
select filename,
content,
fts_main_texts.match_bm25( filename,
queryString,
conjunctive := 1) as score
from texts
where score IS NOT NULL
);