Overview of APSW Full Text Search (FTS5) capabilities
masterAPSW provides comprehensive access to SQLite's fts5 extension. It allows developers to perform high-performance text searches by indexing tokens (typically words) and their locations (rowid, column, and token number).
Key features include:
- Pythonic Interface: Use
apsw.fts5.Tablefor managing FTS5 tables, including automatic handling of SQL quoting, triggers, and options via.create(). - Advanced Tokenization: Access to specialized tokenizers like
UnicodeWordsTokenizer,RegexTokenizer,HTMLTokenizer, andJSONTokenizer. You can also register custom tokenizers usingapsw.Connection.register_fts5_tokenizer. - Search Enhancements: Support for query suggestions (
Table.query_suggest), finding statistically similar rows (Table.more_like), and retrieving significant content (Table.key_tokens). - Ranking & Relevance: Ability to configure ranking functions via
Table.config_rankor on a per-query basis to score matches based on rarity and density. - Unicode Support: Integration with
apsw.unicodefor advanced text processing (grapheme clusters, case folding, accent removal) to ensure high-quality text ingestion and display.