Understanding Autocomplete Suggestions
Provide your visitors with a fast, intuitive search experience by surfacing relevant search suggestions as they type. This guide explains how AB Tasty Search builds, normalizes, and ranks terms for your autocomplete suggestions index.
Overview
The Autocomplete index (also referred to as the Suggestions index) is a dedicated index that powers the /autocomplete endpoint. It delivers real-time, highly relevant search terms to visitors as they begin typing in your search bar, reducing friction and helping them find products faster.
To ensure your search suggestions are always accurate and helpful, AB Tasty automatically blends and updates two primary sources of data:
Past Search Queries: Real search queries typed by your website visitors over the last few weeks.
Catalog-Based Whitelist: A verified list of allowed terms extracted directly from your active product catalog and custom configurations (such as synonyms).
How it Works
The autocomplete pipeline runs daily to rebuild your suggestions index with zero-downtime. This means your suggestions stay fresh and reflect both catalog updates and seasonal search trends without interrupting your live site experience.
1. Data Collection and Extraction
Each day, the system retrieves two sets of raw data:
Recent Search Volume: The most recent searches from unique visitors on your site over the past 8 weeks.
Current Product Catalog: The latest version of your connected product catalog.
2. Building the Whitelist (Allowed Terms)
To prevent typos, irrelevant phrases, or broken strings from appearing as suggestions, AB Tasty generates an "allowed" vocabulary (the whitelist) from your product data.
Attribute Tokenization: The system extracts single words and full phrases from key catalog columns (like product names and categories).
Synonym Enrichment: Synonyms configured on your catalog index are automatically integrated into the whitelist.
Normalization: Accents, punctuation, quotes, and double spaces are cleaned up to establish a pristine list of display forms.
3. Cleaning and Merging
Once the search history and whitelist are prepared, they are cross-referenced to finalize the actual terms shown to users:
Validation: A visitor's search query only becomes a suggestion if it successfully matches an allowed term in the catalog-derived whitelist.
Standardizing Display: Suggestions are formatted with proper capitalization and matching catalog accents. Even if many users type a search term in lowercase or without accents, the autocomplete box will display the correct, clean format from your catalog.
Plural and Singular Consolidation: Grammatical variations (like plurals and singular forms) are merged to keep your suggestion dropdown clean and redundant-free.
Key Features
Useful on Day One (Fallback Suggestions)
If you are onboarding a brand new site or have low search volume, your suggestion box won't be empty. AB Tasty automatically injects whitelist-only terms derived from your catalog. This ensures high-value products and categories remain suggestible from your very first visitor.
Dynamic Ranking Logic
Suggestions are not presented in a random order. When a user types, AB Tasty ranks suggestions dynamically based on:
Popularity (Count): Suggestions that represent queries typed by a larger number of unique visitors are prioritized.
Relevance (Results Returned): Broader search terms that match more catalog items are preferred.
Longer, more specific phrases are favored when search scores are equal.
Last updated
Was this helpful?

