Richard Scotten
04/15/2026, 9:13 PMconst searchParameters: SearchParams<TypesenseDocData> = {
query_by: [
'title',
// 5
'sku',
'skus',
'idNumber',
'rfid',
'rfids',
'email',
'phone',
// 4
'name',
'storageLocation',
// 3
'taxId',
'emails',
'artistName',
'companyName',
'customerName',
'consignorName',
'contacts.email',
'contacts.name',
'contacts.phone',
],
q: sanitizedInput,
highlight_start_tag: '<em>',
highlight_end_tag: '</em>',
sort_by: '_text_match:desc,createdAt:desc',
num_typos: '2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2',
query_by_weights: '5,5,4,5,4,3,2,2,5,3,2,2,2,2,2,2,1,1,1',
limit: 50,
max_candidates: 5000,
per_page: 50,
exhaustive_search: true,
};
const response = await typesenseClient(searchKey)
.collections<TypesenseDocData>('global')
.documents()
.search(searchParameters);
Previously I had the same problem with searching for "delivery" (no matches) and "deliver" (had the expected matches). I was able to fix that by enabling exhaustiveSearch: true and using query_by_weights , but this "indeed" issue persists.Jonathan King
04/16/2026, 3:21 AMRaul Mazilu
06/12/2026, 10:05 PMnumTypos. From my checks, it appears to be a regression of issue #815 (typo correction not applied with some combinations of num_typos and query_by_weights).
Typesense version: 30.2, TS Cloud
Document:
{
"stock_status": "in-stock",
"name": "Shimano SM-RT10-S, Center Lock, 160mm"
}
Not found:
{
"q": "SM-RT10-S",
"query_by": "stock_status,name",
"query_by_weights": "10,4",
"num_typos": "0,2"
}
Found (omitting num_typos):
{
"q": "SM-RT10-S",
"query_by": "stock_status,name",
"query_by_weights": "10,4"
}
Expected: document found via name with typo tolerance.
Actual: zero results. Removing num_typos entirely fixes it.
Is this a known regression or is there a workaround?
Thanks!Alan Martini
07/01/2026, 3:59 PMexhaustive_search=true (plus, num_typos=1 and _text_match:desc first).