---
title: Search
description: "Luigi's Box Search is a complete AI-powered solution for fast, relevant fulltext search with advanced filtering and intelligent ranking."
slug: search
docKind: hub
hub: search
---

Luigi's Box Search is a complete solution designed to provide users with fast, AI-powered, and relevant results. It offers fulltext search functionality with advanced filtering options and intelligent ranking. To function, it requires product data to be indexed and analytics to be integrated, which enables the system to learn from user behavior.

The ranking process goes far beyond simple text matching. It uses a multitude of signals, like product availability, sales data, and freshness, powered by a combination of AI models to determine the most relevant sort order for any query.

Integration is offered via two primary paths: a frontend JavaScript library [Search.js](/search/search-js/) for rapidly building a complete user interface, or a powerful backend [Search API](/search/api/) for maximum flexibility and custom implementations.

## Choose your integration path

<div class="choice-container">
  <a class="choice-card" href="/search/search-js/">
    <span class="choice-badge" data-recommended="true">Recommended for storefronts</span>
    <h3>Search.js</h3>
    <p>A frontend library that can quickly build a full search page with facets, pagination, sorting, and analytics support.</p>
    <ul class="advantages-list">
      <li>Fastest path for web integrations.</li>
      <li>Includes advanced UI features out of the box.</li>
      <li>Supports template-level customization.</li>
    </ul>
  </a>
  <a class="choice-card" href="/search/api/">
    <span class="choice-badge">Backend and custom UI</span>
    <h3>Search API</h3>
    <p>A flexible search endpoint for teams that want server-side control, custom rendering, or mobile/backend integrations.</p>
    <ul class="advantages-list">
      <li>Maximum flexibility and architecture control.</li>
      <li>Supports powerful filtering logic.</li>
      <li>Lets you tune the response payload for performance.</li>
    </ul>
  </a>
</div>

## Start here

<div class="lb-overview-links">
  <p>
    <strong>Still evaluating the architecture?</strong>
    Start with <a href="/quickstart/search/understanding-search/">Understanding Luigi's Box Search</a>.
  </p>
  <p>
    <strong>Want the fastest storefront implementation?</strong>
    Continue with <a href="/quickstart/search/integrating-searchjs/">Integrating Search.js</a>.
  </p>
  <p>
    <strong>Need full control over the search page?</strong>
    Continue with <a href="/quickstart/search/building-custom-ui/">Building a custom search UI</a>.
  </p>
</div>

## Core concepts

Beyond choosing an integration path, it's important to understand the features that make Luigi's Box Search powerful.

- [**Ranking:**](/search/guides/ranking/) Results are not just sorted by text match. Luigi's Box models use a multitude of signals to present the most relevant items first, including product **availability**, **sales data** from analytics, **margin**, and product **freshness**.
- [**Product variants:**](/search/guides/variants/) If products come in different colors or materials, their appearance in search can be configured. It's possible to show each variant as a separate result or have the system intelligently select and display the best-matching variant for a query.
- [**Banner campaigns:**](/search/guides/banner-campaigns/) Display custom, clickable promotional banners for specific search queries directly within the search results and autocomplete suggestions. Campaigns are configured in the Luigi's Box application, and banner data is delivered within the standard Search and Autocomplete API responses.
