Paul Wallnöfer
09/19/2025, 7:07 AM605497 and the other has the number 605490, as you can see the only difference is
the last digit. So if i search be one and turn the number of typos to 1 i should get both results right?
However this is not the case, these are the queries i am using:
{
"q": "605497",
"page": 1,
"per_page": 10,
"include_fields": "number",
"filter_by": "id:*",
"query_by": "number",
"num_typos": 1
}
{
"q": "605490",
"page": 1,
"per_page": 10,
"include_fields": "number",
"filter_by": "id:*",
"query_by": "number",
"num_typos": 1
}
The number field is of type string, is indexed and sortable.
The results of the first and second queries are appended as an image.
What am i missing here? Thank you in advance. 😁Fanis Tharropoulos
09/19/2025, 9:58 AMPaul Wallnöfer
09/19/2025, 10:54 AMFanis Tharropoulos
09/19/2025, 2:24 PMnumber field an int32 field or is it a string field?Fanis Tharropoulos
09/19/2025, 2:32 PMnumber field isn't a string field then it shouldn't be searchable. Also, there's no reason to just filter by id:* , since all that does is match every single id inside the collectionFanis Tharropoulos
09/19/2025, 2:57 PMexhaustive_search=true will match both documents, even though the engine has found at least one exact matchPaul Wallnöfer
09/22/2025, 6:11 AMPaul Wallnöfer
09/22/2025, 6:48 AM605490 product, also yes the number is a string field and i just forgot to take the filter out, for this example.Paul Wallnöfer
09/22/2025, 10:00 AM