Full-Text Search

# Create a text index on fields
db.create_text_index("articles", ["title", "body"])

# Search with TF-IDF ranking
results = db.text_search("articles", "rust database performance", limit=10)

Supported Document Formats

  • Plain text
  • HTML (tags stripped)
  • XML
  • JSON
  • PDF
  • DOCX
  • XLSX
  • Images via OCR (optional ocr feature flag)

The search engine tokenizes text, removes stop words, and ranks results by TF-IDF similarity. Index is persisted to disk.