From 7f6c204322aa13dd8a9760b311955fc4b9a92637 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 13 Oct 2025 23:10:38 +0600 Subject: add simple filtering --- bin/serve.fnl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/serve.fnl') diff --git a/bin/serve.fnl b/bin/serve.fnl index 0948a83..a1d1737 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -43,6 +43,9 @@ expires_at TEXT NOT NULL ); + CREATE VIRTUAL TABLE IF NOT EXISTS products_search + USING fts5(title, short_description, name); + CREATE TABLE IF NOT EXISTS products( name TEXT PRIMARY KEY, creation_time TEXT NOT NULL, -- cgit v1.2.3