fiatjaf / eventstore

an abstraction layer over databases for nostr events
The Unlicense
29 stars 16 forks source link

add search #14

Closed pablof7z closed 5 months ago

pablof7z commented 8 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 8 months ago

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

fiatjaf commented 8 months ago

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

fiatjaf commented 8 months ago

But I still don't like this PR.

fiatjaf commented 8 months ago

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

fiatjaf commented 8 months ago

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

mattn commented 5 months ago

No, I already implemented this with same code.

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