fiatjaf / eventstore

an abstraction layer over databases for nostr events
The Unlicense
26 stars 15 forks source link

add search #14

Closed pablof7z closed 3 months ago

pablof7z commented 6 months ago

this is probably wrong, naive, and vulnerable to all kinds of attacks

but it works

Screenshot 2024-02-27 at 11 40 17 AM
mattn commented 6 months ago

query.go already have a code for search. (please look about 30 lines following)

fiatjaf commented 6 months ago

That is not for search, it's for querying tags.

fiatjaf commented 6 months ago

But I still don't like this PR.

fiatjaf commented 6 months ago

However it could work if this behavior was hidden behind an initialization flag on the DB object.

fiatjaf commented 6 months ago

Ideally NIP-50 would use https://www.sqlite.org/fts5.html though.

mattn commented 3 months ago

No, I already implemented this with same code.

Screencast from 2024年05月29日 18時42分56秒.webm