Rolando Guedes
07/05/2021, 9:07 AM"highlights": [
{
"field": "address",
"matched_tokens": [
"Maria"
],
"snippet": "Praça Dona Maria II 1714, Portugal"
}
],
"highlights": [
{
"field": "address",
"matched_tokens": [
"Carvalho"
],
"snippet": "R. José Carvalho Sá Miranda 44, Portugal"
}
],
The first result is correct, but the second is completely wrong.
I have more wrong results like that. Why? What i'm doing wrong?!
I dont have any synonyms.Kishore Nallan
07/05/2021, 9:12 AMRolando Guedes
07/05/2021, 9:16 AMKishore Nallan
07/05/2021, 9:21 AMCarvalho
is within typo distance of 2 from Maria
if you are making a prefix search because Carva
is compared with Maria
(replace C with M and V with I).
There are two options. You can try setting num_typos
to 1, or you can try setting typo_tokens_threshold
parameter to 1.Kishore Nallan
07/05/2021, 9:21 AMtypesense/typesense:0.21.0.rc20
Docker image locally once?Rolando Guedes
07/05/2021, 9:33 AMtypo_tokens_threshold
was a little better, at least Carvalho is desapear
with the num_typos
the results are OK.Kishore Nallan
07/05/2021, 9:34 AMtypo_tokens_threshold=1
?Rolando Guedes
07/05/2021, 9:37 AM"highlights": [
{
"field": "address",
"matched_tokens": [
"Mal."
],
"snippet": "Av. Mal. Humberto Delgado 206, 4760-012 Vila Nova de Famalicão, Portugal"
}
],
Rolando Guedes
07/05/2021, 9:38 AMnum_typos
i got the right number of resultsKishore Nallan
07/05/2021, 9:40 AMRolando Guedes
07/05/2021, 9:47 AM"highlights": [
{
"field": "name",
"matched_tokens": [
"Bar"
],
"snippet": "PRÍNCIPE - Restaurante e Snack Bar"
}
],
Kishore Nallan
07/05/2021, 9:48 AMRolando Guedes
07/05/2021, 9:49 AMKishore Nallan
07/06/2021, 2:52 PMtypesense/typesense:0.21.0.rc21