#community-help

Resolving Issues with Search Function in Typesense

TLDR Anh-Jo had problems with the search functionality in Typesense using a large JSON file. Kishore Nallan provided a guide that solved the issue.

Powered by Struct AI
6
10mo
Solved
Join the chat
Dec 21, 2022 (10 months ago)
Anh-Jo
Photo of md5-532946f640d5033524d0d1a2910e0c53
Anh-Jo
02:42 PM
Hi guys ! I'm currently experiencing a weird issue with search and dunno if it's me or not :man-facepalming:
But before I post in thread my issue, thank you for opening this slack for your user !
02:43
Anh-Jo
02:43 PM
My issue :
I'm running Typesense locally (in a Docker container with version 0.23.1), and I tried to index a large JSON file with users data. I tried with auto-discover schema and with manual schema to create a collection, then injecting my document (everything went well at this point).
The issue is when I attempt to search in this collection for some document (for exemple by email field), I only get some result which start with my input, and not who "contains" my input. For exemple if I search "test" I should get for output document with email like "[email protected]", "[email protected]", ...etc but I only got something like "test@something"

Can you help me to understand what happen about indexing and how to solve it ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:44 PM
Please see this guide, I think it covers your use case perfectly: https://typesense.org/docs/guide/tips-for-searching-common-types-of-data.html#email-addresses
Anh-Jo
Photo of md5-532946f640d5033524d0d1a2910e0c53
Anh-Jo
02:49 PM
Wow, thanks for the fast answer Kishore Nallan ! 😮
Just tried and it seems that you solve my problem !
02:49
Anh-Jo
02:49 PM
Thank you man from Paris 🇫🇷 , you unlock my day and my experience with Typesense !
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:52 PM
Welcome!