Hi there! I am trying to use the new “not equals f...
# community-help
a
Hi there! I am trying to use the new “not equals filter_by” configuration. I can’t make it work by using the syntax provided in the docs -
filter_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!
k
👋 May I know what version of Typesense you are using? You can hit /debug end-point to find that.
filter_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.
@Alex Lööf
a
Hi Kishore!
{"state":1,"version":"0.21.0.rc7"}
:-=
works though 😮
k
Ah that must be it. It's an early RC build, which might have been rolled out for some other reason which also happened to have the early design for exclusion filters.
a
Oh 😄
k
We moved away from using
-
because it conflicted with genuine use of hyphens.
0.22.0 is going to be out soon, we should migrate your cluster once 0.22 is out to the GA release.
a
Okey nice. If i need the change now, can we upgrade our cluster to 0.21 meanwhile?
k
Yes, sure. If you can just test against 0.21 GA locally and ensure that everything is fine, we can upgrade you.
a
Yes sure. Do you have time to upgrade our dev cluster now? 79bnji2m3qwera6sp-1.a1.typesense.net
k
We usually schedule these upgrades (hoping to self service them soon) since some of them requires collaboration with customer. Is it okay if we do it within the next day?
a
I understand. Yes, the url is sent you is our dev/test cluster, so the time is not important. Later, 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 👍
k
👍 Okay I will update this thread once the dev cluster listed above is upgraded to 0.21
a
Perfect thanks!