Querying Full Names in Typesense
TLDR clem enquired on how to query full names with spaces in Typesense and attempted solving this by removing the spaces. Kishore Nallan explained Typesense prioritizes exact matches and no preprocessing is required. clem realized the problem was with their client, not Typesense.
Sep 06, 2021 (24 months ago)
clem
02:33 AMusers
table with the following attributes:•
•
•
•
John Smith
or Bob Bert
. Now i want to query by the full name, meaning my user should be able to query for John Smith
1.
fullName
is updated, it will set a new attribute called trimmedFullName
(which will be remove the space):a.
John Smith
=> JohnSmith
2.
trimmedFullName
instead of fullName
apologies, I jumped the gun and it was an issue on the client side where the presence of the space in the url was not triggering the search… indeed the typesense search works like a charm with the space, i just tested in postman
Kishore Nallan
02:34 AMKishore Nallan
02:35 AM?q=john smith&query_by=fullName
should already surface exact "John Smith" records at the top.clem
02:40 AMKishore Nallan
02:41 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.


Issues and Improvements in Typesense with 14 Million Records
Miguel experienced performance issues when using Typesense for large datasets. Jason suggested performance improvements made to Typesense since then and directed them to specific server-side parameters for better handling. Miguel agreed to try again.


Adjusting Text Match Score Calculation in TypeSense
Johannes wanted to modify the Text Match Score calculation in TypeSense to improve search results returns. With counsel from Jason and Kishore Nallan, various solutions were proposed, including creating a Github issue, attempting different parameters, and updating Docker to a new version to resolve the matter.
