#community-help

Issue with "facet_query_num_typos" Parameter in typesenseInstantsearchAdapter v2.4.0

TLDR Ivan had trouble using the "facet_query_num_typos" parameter with Typescript in typesenseInstantsearchAdapter v2.4.0. Jason suggested ignoring the warning as it works, but also agreed to address the issue in future updates.

Powered by Struct AI

1

5
19mo
Solved
Join the chat
Mar 30, 2022 (19 months ago)
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
02:23 PM
Hi Kishore Nallan Jason does typesenseInstantsearchAdapter v2.4.0 already support this new "facet_query_num_typos" parameter?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:26 PM
You should be able to add this to additionalSearchParameters when instantiating the adapter
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
02:38 PM
i am trying to add it, but getting error:
'facet_query_num_typos' does not exist in type 'SearchParametersOptionalQueryBy | SearchParametersWithQueryBy'.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:45 PM
Oh you're using Typescript, yeah we need to add to the types. In the meantime, if you can ignore the warning in Typescript, it should still send the param to the server side I think
Ivan
Photo of md5-bcbe2a4c9402d7445badbcf2ebdc68f8
Ivan
03:37 PM
yes, looks like it works with ts-ignore, but anyway it wiil be good if add it to the types in next version of adapter🙂

1