search-autocomplete

Implement typeahead product search with fuzzy matching, merchandising rules, and accessible dropdowns.

3|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill search-autocomplete-tomtoto757
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: search-autocomplete
Source: https://github.com/tomtoto757/ecomm-ai-team/tree/main/skills/storefront-shopping-experience/finsilabs/storefront-ui/search-autocomplete
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill search-autocomplete-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires algoliasearch, dompurify, react, express.

What problem does it solve? Shoppers abandon stores when they cannot find products quickly through a static search bar. This Skill guides the implementation of a search-as-you-type autocomplete experience that surfaces product and category suggestions instantly, handles typos with fuzzy matching, and applies merchandising rules to promote priority items. ## Core Features & Use Cases - Platform-Specific Setup: Step-by-step configuration for Shopify (Search & Discovery, Boost Commerce), WooCommerce (FiboSearch, SearchWP), BigCommerce (Klevu), and custom headless builds with Algolia or Typesense. - Accessible React Component: Production patterns for a debounced autocomplete hook with AbortController race-condition handling and an ARIA combobox/listbox dropdown with full keyboard navigation. - Algolia Index & Merchandising Configuration: Settings for searchable attribute priority, typo tolerance, synonyms, custom ranking, and rules that pin promoted collections using contains-anchoring. - Use Case: A fashion retailer with low search-to-purchase conversion adds an autocomplete dropdown showing product images, prices, and category suggestions after two characters, cutting zero-result searches through synonym groups like "sneakers" ↔ "trainers". ## Quick Start Ask the AI to implement a search autocomplete dropdown for your storefront using this skill, specifying your platform such as Shopify, WooCommerce, or a custom React and Algolia stack.

Frequently Asked Questions about search-autocomplete

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add search autocomplete to my Shopify store?▼

Install the free Search & Discovery app to configure synonyms and product boosts for Shopify's native predictive search. For a full autocomplete dropdown with images, prices, and merchandising rules, add the Boost Commerce app and configure its Instant Search popup.

Algolia vs Typesense for product search autocomplete?▼

Algolia offers the best developer experience with a generous free tier of 10K searches per month and built-in merchandising rules. Typesense is the self-hosted alternative for teams wanting infrastructure control without per-search pricing.

How do I prevent race conditions in a React autocomplete component?▼

Use AbortController to cancel the previous in-flight fetch request before issuing a new one, combined with a 200-300 ms debounce on input. Store the controller in a ref and call .abort() before each new request so stale responses never overwrite fresh results.

Why does fuzzy search return irrelevant results?▼

Fuzzy matching kicks in too early when typo tolerance thresholds are too low. Set minWordSizefor1Typo to 5 in Algolia or prefix_length to 2 in Elasticsearch so a solid word stem is required before typo correction applies.

Why is my Algolia merchandising rule not applying?▼

Rules fail silently when the condition uses anchoring 'is', which only matches exact full queries. Use anchoring 'contains' so the rule triggers on partial matches like 'big sale', and include filterPromotes: true alongside the promote array.

What is the minimum query length for autocomplete search?▼

Set minChars to 2 so no search request fires for single-character input. Single-character queries produce noisy, low-value results and add unnecessary server load without conversion benefit.