Closed haorendashu closed 4 months ago
This code:
https://github.com/fiatjaf/eventstore/blob/4c1b0497dfc1bb8050b3d0766322289225364a54/postgresql/query.go#L122
I think should change the && to @> .
&&
@>
if a filter like this, I think it should query the event contain both a tag with aaa value and p tag with ppp value, just like demo1 not demo4
a
aaa
p
ppp
demo1
demo4
{ "#a": "aaa", "#p": "ppp" }
I may be missing something, but I think you are correct. This is a bug.
This code:
https://github.com/fiatjaf/eventstore/blob/4c1b0497dfc1bb8050b3d0766322289225364a54/postgresql/query.go#L122
I think should change the
&&
to@>
.if a filter like this, I think it should query the event contain both
a
tag withaaa
value andp
tag withppp
value, just likedemo1
notdemo4