nostrdb/search: also index longform

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2023-12-02 12:16:53 -08:00
parent 3e5d7581ba
commit 9bbeffe320

View File

@@ -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;
}