Clarification and Solution for 'not equals filter_by' Configuration
TLDR Alex asked about filter syntax in Typesense. Kishore Nallan clarified that the version being used caused the issue and offered to upgrade their dev cluster to resolve it.
Oct 28, 2021 (25 months ago)
Alex
10:13 AMfilter_by=author:!= JK Rowling
. However, i think it works with this syntax - filter_by=author:-= JK Rowling
. Are the docs wrong or do i have issues with my setup? Thanks!Kishore Nallan
10:14 AMKishore Nallan
10:28 AMfilter_by=author:!= JK Rowling
is the correct syntax, though we experimented with the "-" very early on, with some debug builds but it was never published. When you use :-=
it will just be treated equals since everything after :
will be treated as part of filter value and during tokenization, those special characters will be dropped.Kishore Nallan
11:13 AMAlex
11:28 AM{"state":1,"version":"0.21.0.rc7"}
Alex
11:28 AM:-=
works though ๐ฎKishore Nallan
11:28 AMAlex
11:29 AMKishore Nallan
11:29 AM-
because it conflicted with genuine use of hyphens.Kishore Nallan
11:30 AMAlex
11:31 AMKishore Nallan
11:32 AMAlex
11:37 AMKishore Nallan
11:38 AMAlex
11:48 AMLater, when it is time to bump our prod cluster, then it would be nice to schedule it so we can put up a maintenance banner on our site :thumbsup:
Kishore Nallan
11:49 AMAlex
11:50 AMTypesense
Indexed 2776 threads (79% resolved)
Similar Threads
Upgrading Typesense to Solve Syntax Error
Ken encountered an issue with Typesense search enhancements on their site and Jason suggested an upgrade. They also discussed the possible downtime and finalized the process.
Resolving Multilingual Search Function in Typesense Software
Bill is having difficulty with multilingual search functionality in Typesense software. Developer Kishore Nallan suggested setting a language locale and provided a demo build. The build solution had some issues, and after multiple rounds of software updates and troubleshooting, the problem still persists.
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.
Handling Kinesis Stream Event Batching with Typesense
Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.
Resolving 'Sort by String Property' Error in Typesense
Ahmad was unable to sort by a string property on Typesense. Jason helped diagnose the issue, instructed the user to upgrade from their side, and enabled the sorting feature in the user's schema.