#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

1

1

1

9
25mo
Solved
Join the chat
Dec 16, 2021 (25 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

1

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.

1

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.

1

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3011 threads (79% resolved)

Join Our Community

Similar Threads

Collaborative Project on Laravel Scout Integration with Typesense

Joe used Typesense and Laravel to index documents quickly. He suggested adding Typesense to Laravel Scout docs. Jason agreed and asked community members for help. Abdullah volunteered to maintain the integration. Raises were raised and plans discussed, with unexpected resistance from official channels.

7

28
26mo
Solved

Collaborating on Laravel Scout Engine for Typesense

Jason invited contributors Abdullah and Tim for a collaboration on the Laravel Scout engine for Typesense. They discussed framework intricacies and agreed to collaborate under Typesense's GitHub organization.

4

22
33mo
Solved

Incorporation of Laravel Scout Engine to TypeSense Organization

Jason and Alex discuss adopting Abdullah's Laravel Scout Engine into the TypeSense organization. Abdullah agrees, leading to Jason creating a repo within the organization and hi019 helping to complete transition tasks.

3

13
31mo
Solved

Laravel Package related Issue Resolved (`typesense/laravel-scout-typesense-driver`)

Jaeyson faced a network exception while setting up `typesense/laravel-scout-typesense-driver` on Docker. em1nos solved the issue by suggesting changing the hostname to "typesense".

3

8
19mo
Solved

Laravel Scout Update and Debugging Deletion Issue with Typesense

hi019 worked on merging Laravel Scout updates and encountered a document deletion issue due to type mismatch. Abdullah suggested a solution, which was successfully implemented. Additionally, Abdullah joined the project repo.

4

9
26mo
Solved