#community-help

Resolution for Disabling Suggestion Records in Typesense

TLDR Riyadh wanted to know how to disable suggestion records in Typesense. Andrew suggested adding ?num_typos=0 to the query. Kishore Nallan provided useful PHP examples and Laravel Scout plugin usage while Mubashirullah tried to implement it.

Powered by Struct AI
heavy_plus_sign1
raised_hands1
white_check_mark1
9
21mo
Solved
Join the chat
Dec 16, 2021 (21 months ago)
Riyadh
Photo of md5-d66f6ffa54b48cabc274be0d4bb62091
Riyadh
09:54 AM
i have a problem with typesense, could you help me guys, i have one hundred records, my question is when i search in my application for example "cloth" and result is show cloth records but, i get suggestion records and i dont want to show this, how to disable suggestion records guys?
Andrew
Photo of md5-88d88db4789daa0e3abef8c3ca27772b
Andrew
10:15 AM
Hi Riyadh. I'm not from the typesense team but maybe you need to add
?num_typos=0 to your query
heavy_plus_sign1
Riyadh
Photo of md5-d66f6ffa54b48cabc274be0d4bb62091
Riyadh
10:40 AM
how i add the query in laravel ?
Andrew
Photo of md5-88d88db4789daa0e3abef8c3ca27772b
Andrew
10:45 AM
can't tell you that. sorry
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:19 PM
Please look at the PHP examples in the search examples here: https://typesense.org/docs/0.22.1/api/documents.html#search
12:19
Kishore Nallan
12:19 PM
The usage for Laravel Scout plugin is here: https://github.com/typesense/laravel-scout-typesense-driver#usage
Mubashirullah
Photo of md5-cea7a558edb0c66a1c07dfdcf00bc141
Mubashirullah
12:43 PM
Can I take the

"cloth?num_typos=0" 

as a hacked approach for phrase search?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:54 PM
I'm working on phrase search in this release and will be available for preview in the next few weeks.
raised_hands1
12:59
Kishore Nallan
12:59 PM
If you wish to hack it you can set num_typos to 0 and also set drop_tokens_threshold also to zero.
white_check_mark1