Troubleshooting Search Function with Typesense
TLDR Rohan had trouble understanding how search functions in Typesense with email string fields. Kishore Nallan explained the logic of indexing and introduced new features in the 0.22 RC version, advised Rohan to create an issue regarding schema creation errors.
1
Nov 29, 2021 (26 months ago)
Rohan
06:27 AMNow when i search with rohan, i get the proper result, but when i search with google i dont get any results. So should i break the string into different parts like "rohan google.com [email protected]" while saving it? Or is there some typesense way of getting around it?
Kishore Nallan
06:43 AM<mailto:[email protected]|[email protected]>
will be indexed at rohangooglecom
in Typesense 0.21 since it drops all special characters. So rohan
works because we support prefix search but not while querying the other words like google
or com
.In 0.21, you have to break the string into parts before indexing, but in 0.22 RC we have a feature for adding custom separators as part of the collection schema. Check
token_separators
config here: https://github.com/typesense/typesense-website/blob/v0.22.0-docs/docs-site/content/0.22.0/api/collections.md#schema-argumentsRohan
07:36 AMKishore Nallan
07:37 AMRohan
07:53 AMKishore Nallan
08:09 AM/debug
end-point to check the TS verison. Regarding the schema, please create an issue on the mongo plugin repo.1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Understanding Typesense with Java and MongoDB
Vasudev needed help implementing a Java project with Typesense and MongoDB. Kishore Nallan guided them in designing the project, explaining different methods, providing templates, and responding to error issues. At last, Vasudev successfully implemented the project and expressed gratitude.
Resolving Issues with Infix and Prefix in Query Searches
Daren struggled with searches missing values in production. Jason and Kishore Nallan offered insights and created new features to help solve the problem, which was then tested and deployed by Daren.
Issues with Importing Typesense Collection to Different Server
Kevin had problems migrating a Typesense collection between Docusaurus sites on different machines. Jason advised them on JSONL format, handling server hosting, and creating a collection schema before importing documents, leading to successful import.