How Indx handles typos and fuzzy queries
Misspelled, half typed, written together or apart: how Indx finds what people mean without synonym lists or tuning, and tells you honestly how it found it. Updated for Indx 6.
Real users do not type clean queries. They misspell, run words together, split them, stop halfway, and search on a phone with autocorrect fighting them. Indx is built for that input. There is no list of misspellings to keep and no analyzer to choose: you say which fields are searched, and the rest is handled.
Updated 20 November 2026 for Indx 6.
A search for "wirless hedphones" should find the wireless headphones. With Indx, it does.
Words, and the typos in them
Indx 6 indexes each searched field's words. A query word is looked up as typed first, then within one edit, then two, and up to three for the fields you allow it on. One edit is allowed from three letters, two from six, three from nine, so a short word is not matched to everything near it.
Each of those steps is a level, and the first level on which records hold every word of the query is the answer. Two things follow, and both are things people notice:
- The word as typed always wins. A record holding the words exactly as typed is never placed below one that only matches with a typo.
- The count is honest. The records counted, the facets and the list are the same set, and the result says which level they came from. A page can say "12 results, all with a typo" and mean it.
Past the typos: pattern matching
Some input is more wrong than any edit count allows: a name heard once, a word mangled on a phone. For that, a field can also be matched inside its words. Pattern matching finds records from the parts of a word that survive, so a badly misspelled word still finds its record, and part of a word is enough.
It is chosen field by field. A title or a product name usually gets both, whole words and patterns. A code or an SKU gets whole words only, so that close numbers are not mixed up.
When no record holds every word of the query, the list is not empty: it is the records holding most of the words, then the pattern matches, marked as such so your page can say so. For an agent that needs a trustworthy "no match", that fallback can be switched off.
Together, apart, and compound
"USB C", "USB-C" and "USBC" should find the same product. Words written together or apart find each other. A compound is linked to its parts when the index is built: in Norwegian "brun ost" finds "brunost", and "hvitløksmør" finds the records holding "hvitløk" and "smør". There is no dictionary behind it, so it works in any language and for words that are not in any dictionary.
Half typed
The word being typed is read as the start of a longer word, so "headph" already finds the headphones, while the finished words are matched whole. Every keystroke is a full ranked search, with no separate suggest endpoint and no need to wait for a pause.
What typos are not
Two things look like typos but are not, and Indx keeps them apart:
- Different words for the same thing. "Couch" and "sofa" share no letters. That is what synonyms are for, one-way or both, and they apply on the next search with nothing re-indexed.
- Accents. "jalapeno" finds jalapeno and jalapeño alike, but type the ñ on purpose and the records spelled that way come first.
Fast enough to be forgiving on every key
Forgiving matching usually costs time. In Indx the word lookup goes level by level and stops at the first that answers, so a query typed right never pays for the typo search. It is fast enough to search on every keystroke without a debounce.
Try it
Throw a few deliberately messy queries at your own data and watch what comes back, and how the result says it got there.
- How a search works, in the v6 docs
- Adding search to your .NET app
More articles
Word indexing with up to three typos, ranking you control field by field, and faster, leaner search. IndxSearchLib 6.0 and the Indx server 2.0 are both in beta.
A skill, agent-readable docs, and a built-in MCP server. Describe what you want searchable, and your agent does the rest. Updated for Indx 6.