Read the original at figma.com ↗figma.com
Figma's engineering team shares how they built deep search, a feature that lets users find files by searching their content rather than just metadata. The team faced significant technical challenges scaling content indexing across thousands of design files stored in S3, ultimately choosing to accept staleness (hourly updates vs. real-time) to reduce computational costs. By leveraging infrastructure from Design System Analytics and running periodic batch processing, they created a system that searches text within files while maintaining performance.
01Key takeaways
- Accept staleness in search results (hourly vs. real-time) to reduce computational costs when indexing large, complex documents.
- Reuse infrastructure from adjacent features (Design System Analytics) to accelerate development and reduce duplication.
- Test multiple indexing strategies hands-on; search quality is empirical, not theoretical—learn what users actually search for.
- Component instances and frequency matter more than page names; generic categorical labels add noise to search results.
- Batch processing with deduplication (hourly) is more efficient than processing every save event (every 30 seconds).
- Small, cross-functional teams move faster than large groups; coordinate tightly across infrastructure, product, and data teams.
02Key sections
- Why deep search matters
- Users remember design ideas and content snippets, not file names. Deep search lets designers find files by keywords and phrases within the design, enabling discovery without knowing exact file names.
- Web-based architecture advantages
- Building in the browser enables rich collaboration features and access to detailed file metadata. This foundation made deep search a natural extension of Figma's product roadmap.
- Technical foundation and infrastructure reuse
- Deep search leveraged the infrastructure built for Design System Analytics, which already handled opening files, retrieving them from storage, and walking through file structures to extract relevant data.
- Metadata vs. content indexing tradeoffs
- Regular search indexes lightweight database metadata; deep search must parse .fig files (stored as trees with thousands of nodes) from S3. The team chose hourly batch processing over real-time indexing to avoid expensive computational overhead.
- What to index: art over science
- The team experimented with different indexing strategies, discovering that page names add noise while component instances and frequency matter. They learned through hands-on testing what actually improves search accuracy for designers.
- Small, cross-functional team execution
- A lean working group spanning infrastructure, collaboration, and data science teams moved quickly. The intern-led project demonstrates how focused coordination enables shipping complex features.
“When you think back on a project, specific file and folder names probably aren't top of mind. Instead, you might remember an idea, a snippet…”Shloak Jain · figma.com
“We made the product decision to allow deep search results to be stale for a short amount of time to save our servers a significant…”Shloak Jain · figma.com
03Frameworks mentioned
Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.