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)
I.e. I want to find all the people who have a job title with "Engineer" in it, but not "Backend"
title:engineer && title:!backend
But that didn't seem to work.
title:engineer && title:!`back end`
title:engineer && title:!=`back end`
Indexed 3005 threads (79% resolved)
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.