Nour Hajjaj
12/15/2025, 1:02 PM{ name: "sku_raw", type: "string", infix: true },
i am testing a search query like this:
const res = await client.collections("products").documents().search({
"gdx",
query_by: "sku",
prefix: true,
per_page: 20,
page,
});
in my collection i have documents with sku like "gdx1234" and others like "ngdx1234". My expectation is to get all documents that have these patterns or at least get the ones that have sku field starting with "gdx".
i am getting only 10 results even though i have 2557 documents with sku field starting with "gdx".Alan Martini
12/15/2025, 1:18 PMNour Hajjaj
12/15/2025, 1:43 PMAlan Martini
12/15/2025, 2:55 PMmax_candidates limits how many token candidates are considered during fuzzy search.
E.g:
For each query token (e.g., "steve" with num_typos=1), Typesense searches the index for similar tokens:
- Exact match: "steve"
- 1 typo: "steve", "stev", "stevea", etc.
- 2 typos: (if allowed)
Query: "steve jobs" with max_candidates=4, num_typos=1
For token "steve":
- Finds: ["steve", "stev", "stevea", "steven"] (4 candidates)
- Stops searching after finding 4 candidatesNour Hajjaj
12/17/2025, 9:28 AMexhaustive_search but it override the whole search somehow, it wasn't searching based on the keyword givenAlan Martini
12/17/2025, 12:34 PMdrop_tokens_thresholds, num_typos and so on
https://typesense.org/docs/29.0/api/search.html#typo-tolerance-parametersNour Hajjaj
12/18/2025, 8:11 AMFanis Tharropoulos
12/18/2025, 8:13 AMfound parameter be exposed to the UI, and then either paginate through the number of pages or through cursor based pagination.