Skip to main content

Architecture: Search

This section describes the universal search system and its connection to various search providers.

High-Level Architecture

The Search module uses a flexible adapter pattern, allowing the same frontend search components to work with different backend providers like SAP Commerce, Coveo, or custom search services.

Connection with Other Areas

  • Universal Interface: The SearchClient provides a unified API for common search tasks like searching for terms, navigating categories, and getting product suggestions.
  • Adapter Pattern: By choosing an adapter at the configuration level, you can switch your entire search backend without modifying your UI components or hooks.
  • Search Tracking: It integrates with the @archibald/analytics package to track search-specific events, such as which terms are being searched and which results are clicked.