feat: implement document management functionality for search
* developed search engine capabilities for documents using TF-IDF indexing * utility functions for tokenization and frequency counting for document content
···11+CREATE TABLE IF NOT EXISTS documents (
22+ id INTEGER PRIMARY KEY AUTOINCREMENT,
33+ title TEXT NOT NULL,
44+ body TEXT NOT NULL,
55+ created_at DATETIME NOT NULL,
66+ doc_kind INTEGER NOT NULL
77+);
88+99+CREATE INDEX IF NOT EXISTS idx_documents_doc_kind ON documents(doc_kind);
1010+CREATE INDEX IF NOT EXISTS idx_documents_created_at ON documents(created_at);