Skip to content

Product Search

Search and Discovery

Cartly uses Typesense — a fast, typo-tolerant search engine — to power instant product search on your storefront and in the admin panel.

How Search Works

When you create or update a product, Cartly automatically syncs it to the Typesense search index within milliseconds. The index includes the product title, description, tags, type, vendor, and variant information. This means new products are searchable immediately after saving.

Storefront Search

Your storefront includes a search bar that provides instant results as the customer types. Features include:

  • Typo tolerance — Finds products even when customers misspell words (e.g., "snekers" matches "sneakers")
  • Prefix search — Results appear as soon as the customer starts typing, before they finish the word
  • Relevance ranking — Results are sorted by relevance, with exact title matches ranked highest
  • Fast response — Search queries return results in under 50ms

Admin Search

The admin panel uses the same Typesense index for product search. When you search in the Products section or use the command palette (Ctrl+K), you get the same instant, typo-tolerant results.

Search Index Management

The search index is managed automatically. However, if you notice search results are out of sync, you can trigger a full reindex from the admin panel. This rebuilds the entire search index from your database, ensuring everything is up to date.

Search Analytics

Cartly tracks what customers search for on your storefront. Use this data to:

  • Identify popular search terms and ensure matching products exist
  • Find search terms with zero results and add relevant products or synonyms
  • Understand what customers are looking for and adjust your catalog

GraphQL Search

The storefront GraphQL API includes a products(query: "...") field that uses Typesense for full-text search. This allows headless frontends and mobile apps to leverage the same fast search capabilities.

Was this helpful?