may have spent the last 8 hours building a fulltext search engine in nostrdb.

I made the index as space efficient as possible, they keys are stored in a compressed format and map words and word indices to note ids. So when you type β€œthe quick brown fox” it will be able to return results with those exact words in sequence (or not if it can’t find a sequence).

Testing it now πŸ‘€. Will release soon β„’

Reply to this note

Please Login to reply.

Discussion

That was quick - brown fox!

Idk what this is and I’m not afraid to ask. What is this?

πŸ€£πŸ˜‚πŸš€

πŸ˜‚πŸ˜‚πŸ˜‚

πŸ˜‚πŸ€£

nostr loves you, thank you πŸ™πŸ’œ

Is there anything you can't do???

pretty bad at cooking

Thank god for take out and ....

Say it. The PC police are not here and don’t matter anyways πŸ˜‰

W

Anxiety again πŸ₯²

πŸ”₯⚑️πŸ”₯⚑️πŸ”₯⚑️πŸ”₯ DAMN dude 🫑

Nbd πŸ™Œ

so we need an excellent product manager in nostr companyπŸ‘€

We already have one! 😎

Idea: limit the index to, say, the 64000 most used words including plurals and other variations), names (first and last), materials and brands.

So keep typo’s and rare words out of the index, sanitizing the indrx makes its size much more manageable.

Case sensitive??

oops thanks for reminding me

Full text search in 8 hours. Anyone impressed yet? In the last 3 weeks I changed a banner on the home page of the popular website.

Tshirt Idea: "Will release soon"

WEEEDSTR

If you’re looking for a quick and dirty way to add fuzzy search and stemming, try tokenizing the lowercase string into character triplets, including spaces:

[ th,e q,uic,k b,row,n f,ox ] and sorting by highest count of matching tokens.

I was going to look into stemming/lemmatization after. Keeping it simple on the first pass

Will, release soon

Perfect. I literally implemented Elastic into my client yesterday and concluded we have to do better

Is that for damus only?

Its a feature of nostrdb which has nothing to do with damus, but damus does use nostrdb

Ah sweet. This will greatly help discovery in app for the apps that choose to use nostrdb then. Discovery in amethyst isntgreatd. I use nostr.band as a workaround usually.

Thanks Will.

look at the difference between searching in tidal (has to be exact) and youtube (does not need to be exact)

LFG

Sick!! Is nostrdb out there for other clients to use already?

Dope

Hi Will! If I search for hashtag Argentina on #Damus the app closes 😳

Feature, not a bug. πŸ˜‚

Ok 😊 it was just weird. I think there is a note with a bug.

Propaganda whores and the cure.

πŸ•·οΈ

What if?

πŸ’Œ

πŸ‘€ good catch. Will debug

πŸ˜‹

πŸ’œ

Freaking mastermind ⚑️🫢🏽

Some sats on their way to you! πŸ€™πŸΌ