mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
when no searchable attributes are defined, makes all the weight equals to zero
This commit is contained in:
parent
c78a2fa4f5
commit
f2d0a59f1d
6 changed files with 14 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue