mirror of
git://jb55.com/damus
synced 2024-10-04 19:00:42 +00:00
nostrdb/search: also index longform
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
3e5d7581ba
commit
9bbeffe320
@ -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))
|
if (!ndb_write_note_kind_index(txn, note->note, note_key))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// only do fulltext index on kind1 notes
|
// only do fulltext index on text and longform notes
|
||||||
if (note->note->kind == 1) {
|
if (note->note->kind == 1 || note->note->kind == 30023) {
|
||||||
if (!ndb_write_note_fulltext_index(txn, note->note, note_key))
|
if (!ndb_write_note_fulltext_index(txn, note->note, note_key))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user