Utilizing Typesense Multi Search in a NestJS App with Drivers and Vehicles
TLDR Trad was experiencing problems with their multi search in a NestJS app. Jason suggested making changes to the drop_tokens_threshold
to fix the issue.
3
Oct 24, 2023 (1 month ago)
Trad
12:25 PMI am using typesense in nestjs app. I have drivers and vehicles collection with a
searchFiled
attribute to store all the fields i will query on later.the search field on the driver and the assigned vehicle will be the same and contains the same data.
Ex. the
searchField
in a driver "searchField": "raniaaref rav 4 22-44518 2020 334",
It contains the driver name '
raniaaref
', vehicle model 'rav 4
, vehicle plate '22-44518
' , vehicle year '2020
' and driver Id '334
'.I have two vehicles with
camry
model and one single vehicle with 2020
yearI am using multi search and when I query for the term
2020 camry
It just return only one vehicle with 2020
model year.I am expecting to return three vehicles two with
camry
model and one with 2020
model year.what is the issue? If any one can help or advice here please?
Trad
03:33 PMJason
04:15 PMdrop_tokens_threshold: 1000
as a search parameter1
Jason
04:15 PMOct 25, 2023 (1 month ago)
Trad
05:10 AM1
Trad
01:57 PMBut how I can achieve the opposite.
I mean to get the vehicles which are only both Camry and 2020
Thanks 🙏
Jason
02:36 PM1
Oct 26, 2023 (1 month ago)
Trad
06:04 AMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Issue with Query Expectations on Typesense Search
Sean was having an issue with their search query on Typesense. Kishore Nallan suggested adjusting the 'drop_tokens_threshold' parameter. After making the adjustment, Sean found an issue with the order of the results, which was resolved by updating Typesense version.
Typesense Partial Text Search Functionality Clarification
Davi queries about search behavior in Typesense, not seeing expected results with partial search strings. Jason confirms this behavior as expected and refers to an open feature request to address the query.
Implementing OR Query in Typesense for Multiple-Word Search
Md.Riad was seeking assistance on implementing an OR query in Typesense for multiple word search. Jason clarified that Typesense already provides this feature by default and suggested to adjust the `drop_tokens_threshold` to obtain more varied results.
Inconsistent Results from Filter_by Function in Typesense
Md.Riad was getting varying product results using Typesense's filter_by function. John suggested it might be a typo-correction issue while Kishore Nallan advised increasing the max_candidates parameter.
Discussing Firestore Extension and Collection Schema in Typesense
Loic asks about settings in Firestore Extension and experiences issues with the collection schema in Typesense. Discussion with Jason is ongoing.