Do not insert empty keywords in FTS index

This commit is contained in:
mdecimus
2024-08-22 12:33:23 +02:00
parent bd4129e160
commit fe0ccb11bd
2 changed files with 21 additions and 11 deletions

View File

@@ -250,7 +250,7 @@ impl<T: ResolveId> ValueClass<T> {
let serializer = serializer.write(account_id).write(
hash.hash
.get(0..std::cmp::min(hash.len as usize, 8))
.unwrap(),
.unwrap_or_default(),
);
if hash.len >= 8 {