Active Search
summary
A new Rails gem provides a single API for full‑text search with pluggable adapters that target SQLite, PostgreSQL, MySQL or dedicated engines like Elasticsearch; Basecamp runs it on Elasticsearch and Fizzy uses it to switch between MySQL and SQLite in production. It generates index definitions and model hooks, performs async indexing via background jobs (or inline when disabled), supports polymorphic indices for mixing articles and comments, creates denormalized document tables (eg SQLite FTS virtual table) and exposes a chainable query API with native escape hatches; it’s usable today but still alpha.
AI-written summary · about
chapters (10)
- 0:00Introduction to Active Search
- 1:29Framework overview and use cases
- 4:15Setting up and creating indexes
- 7:25Indexing articles and callbacks
- 11:06How indexing works behind the scenes
- 15:02Searching with chainable API
- 18:31Polymorphic searching with articles and comments
- 21:59Database adapters and SQLite setup
- 25:12Supported search engine features
- 27:59Summary and resources
