Filtering by String Exclusion in Typesense
TLDR Jainil asked how to filter queries excluding certain words in Typesense. Jason clarified Typesense doesn't support partial word excludes and advised creating a GitHub issue for this feature request.
Jun 05, 2023 (6 months ago)
Jainil
04:56 PMI.e. I want to find all the people who have a job title with "Engineer" in it, but not "Backend"
Jainil
04:57 PMtitle:engineer && title:!backend
But that didn't seem to work.
Jainil
05:47 PMI.e.
title:engineer && title:!`back end`
Jason
07:07 PMtitle:engineer && title:!=`back end`
Jason
07:07 PMJainil
07:08 PMJason
07:08 PMJainil
07:09 PMJainil
07:12 PMhttps://github.com/typesense/typesense/issues/155#issuecomment-736515398
Jainil
07:12 PMJason
07:13 PMq
parameterJainil
07:35 PMhttps://github.com/typesense/typesense/issues/1046
Typesense
Indexed 3005 threads (79% resolved)
Similar Threads
Typesense filters
Dave asked if Typesense's filters could do "contains" instead of whole word matching. Jason suggested using ':' for partial matches instead of ':='. They also mentioned that structured searches can only be done with filter_by.
Search Query Issues in Typesense
Gines wanted search results in Typesense for partial matches, not just exact ones. Kishore Nallan suggested solutions, but none fulfilled Gines's requirements.
Excluding Specific Documents in Typesense Results
Alexander asked how to exclude specific documents in Typesense search results, and Jason suggested using the hidden_hits search parameter and multi_search for large lists.
Resolving Typesense Search Issues
Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.
Query String with OR Functionality in Typesense
Michael asked how to build a query string with "OR" functionality, but Kishore Nallan informed them it is not currently supported. However, a new version of Typesense with better similarity operations is coming in a week or two.