From 9bbeffe3200792a56fff070aca30185dcbc59b56 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 2 Dec 2023 12:16:53 -0800 Subject: [PATCH] nostrdb/search: also index longform Signed-off-by: William Casarin --- nostrdb/nostrdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c index 07a9c4e5..b7333bd5 100644 --- a/nostrdb/nostrdb.c +++ b/nostrdb/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; }