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.