nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 488b4c1f6b0f9615c47fc87e4e4798460796b05b
parent 27d14cce563185628707d2aa547fcaad7de7d2b2
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  2 Dec 2023 12:16:53 -0800

search: also index longform

Diffstat:
Mnostrdb.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -2795,8 +2795,8 @@ static uint64_t ndb_write_note(struct ndb_txn *txn, if (!ndb_write_note_kind_index(txn, note->note, note_key)) return 0; - // only do fulltext index on kind1 notes - if (note->note->kind == 1) { + // only do fulltext index on text and longform notes + if (note->note->kind == 1 || note->note->kind == 30023) { if (!ndb_write_note_fulltext_index(txn, note->note, note_key)) return 0; }