Oddbean new post about | logout
 @PABLOF7z new bluge-powered search-only eventstore backend for Khatru just dropped: https://github.com/fiatjaf/eventstore/tree/master/bluge

There is no README, no docs. I'll deploy it to custom.fiatjaf.com soon and see if it works and then I'll write that. In my local tests it was good. Not 100% accuracy, but very fast.

The idea is that for queries without "search" you go to the normal backend, for queries with "search" you only use this. And it doesn't store the events twice, only the indexes. The events are fetched from the other database backend based on id results from the search. 
 You’ll need to add a LLM for search relevance going forward. 
Don’t constrain your ideas to what you know… 
 Turns out this is too good.

https://wikistr.com/ is now using custom.fiatjaf.com with this thing on as well as relay.wikifreedia.xyz as default "search" relays, so searches will easily give you access to all the spam I've been pulling from other wikis now. 
 Not too sure what this is but I like it 💪🏼.

Could you provide a quick tl;dr 🙏🏼 
 can you use search AND other filters? 
 Yes, but not from the user side, I think I would have to parse the user query and translate that into instructions for the library on my side, which I haven't done (yet). Do you want that? 
 Tbh I wrote my own relay for zapstore: ftsrelay - it does NIP-50 full text search alongside other filters. Bun + sqlite fts, it's working surprisingly well

But I haven't done any serious perf tests.  I would want to have other relays with the same feature set in case something goes wrong with ftsrelay, or for the time when more users would want to run their own zapstore-compatible relays (i.e. they need to be full text indexing certain fields of certain events)

https://github.com/zapstore/ftsrelay