when no searchable attributes are defined, makes all the weight equals to zero

This commit is contained in:
Tamo 2024-05-16 01:06:33 +02:00
parent c78a2fa4f5
commit f2d0a59f1d
6 changed files with 14 additions and 14 deletions

View file

@ -2492,7 +2492,7 @@ pub(crate) mod tests {
db_snap!(index, fieldids_weights_map, @r###"
fid weight
0 0 |
1 1 |
1 0 |
"###);
index.delete_documents(Default::default());
@ -2512,7 +2512,7 @@ pub(crate) mod tests {
db_snap!(index, fieldids_weights_map, @r###"
fid weight
0 0 |
1 1 |
1 0 |
"###);
index
@ -2537,7 +2537,7 @@ pub(crate) mod tests {
db_snap!(index, fieldids_weights_map, @r###"
fid weight
0 0 |
1 1 |
1 0 |
"###);
let rtxn = index.read_txn().unwrap();