revert search service changes

This commit is contained in:
phernandez
2025-01-12 19:56:35 -06:00
parent 94ffd25b66
commit abe80f74b2
4 changed files with 49 additions and 189 deletions
+5 -4
View File
@@ -5,11 +5,12 @@ from sqlalchemy import DDL
# Define FTS5 virtual table creation
CREATE_SEARCH_INDEX = DDL("""
CREATE VIRTUAL TABLE IF NOT EXISTS search_index USING fts5(
content, -- Searchable text content
permalink UNINDEXED, -- Link to entity/document (must be unique)
title, -- Title for exact/fuzzy matching
content, -- Additional searchable content
permalink UNINDEXED, -- Link to entity/document
file_path UNINDEXED, -- Filesystem path
type UNINDEXED, -- 'entity' or 'document'
metadata UNINDEXED, -- JSON with timestamps, types, etc.
type UNINDEXED, -- entity type
metadata UNINDEXED, -- Additional metadata
tokenize='porter unicode61' -- Enable stemming + unicode
);
""")