Skip to main content
BoutiqueDB exposes Turso’s native search extensions directly to Swift developers, enabling local full-text search and AI vector indexing.

Full-Text Search (Tantivy BM25)

Turso incorporates Tantivy, a Rust full-text engine that delivers high-performance BM25 ranking and stemming.

Creating an FTS Index

FTSIndex.swift

Searching Text Content

FTSQuery.swift

BoutiqueDB natively supports 32-bit floating point vectors via the Vector32 type.

Storing Vectors in @Table Models

DocumentVector.swift

Creating Vector Indexes & Distance Queries

VectorSearch.swift
On-Device AI Integration: Combine Vector32 with Apple’s NaturalLanguage framework or CoreML models to execute vector similarity search on-device!