jb55 on Nostr: may have spent the last 8 hours building a fulltext search engine in nostrdb. I made ...
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 ™
Published at
2023-11-28 00:50:14Event JSON
{
"id": "f6788084fb32374aa0b0aa33d4b1d36a9b1b0014dcb53e69cf872b17863d47dd",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1701132614,
"kind": 1,
"tags": [],
"content": "may have spent the last 8 hours building a fulltext search engine in nostrdb.\n\nI 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).\n\nTesting it now 👀. Will release soon ™",
"sig": "52211d3f4b7229b49b3cda74ab1f9839133b071d3b15b593ed478b44a20f92994bf623661a6064659e4ed044e76fd80a920f16acef791830f89f7f0d2b21465b"
}