Prefix search matches results that start with what the user has typed. It powers fast, type-ahead suggestions and instant findability.
Search prefix (or prefix search) returns matches where a field begins with the user’s input—e.g., typing “air m” surfaces “air max 270.” It’s the core of autocomplete and as-you-type experiences.
Prefix search makes autocomplete feel instant and helpful. Use a dedicated completion index, sensible triggers, localization, and diverse suggestions.
Prefix vs substring search?
Prefix matches from the start; substring matches anywhere (costlier—use sparingly).
Do I need both n-grams and tries?
Tries/FSTs are efficient; edge n-grams are simple. Choose per stack.
See these concepts in action: semantic, typo-tolerant search for Shopify stores — implemented by Rapid Search