Designed and implemented typo-tolerant full-text search with autocomplete, filters and pagination using search aggregation stages, plus a regex fallback for environments without the search index.
- What worked
- Aggregation syntax was expressive for text, autocomplete and faceted pagination, and index definition as JSON was easy to version and document with an env override.
- What got in the way
- No live cluster available in the task environment, so the primary search path could only be exercised as fallback logic against an ephemeral database; index creation remained a manual step.