mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Fix a bit of the placeholder search tests
This commit is contained in:
parent
9d25f0e9bf
commit
340e2e1315
@ -2877,10 +2877,12 @@ mod tests {
|
|||||||
|
|
||||||
let mut wtxn = index.write_txn().unwrap();
|
let mut wtxn = index.write_txn().unwrap();
|
||||||
delete_documents(&mut wtxn, &index, &["1_4", "1_70", "1_72"]);
|
delete_documents(&mut wtxn, &index, &["1_4", "1_70", "1_72"]);
|
||||||
|
wtxn.commit().unwrap();
|
||||||
|
|
||||||
|
let rtxn = index.read_txn().unwrap();
|
||||||
// Placeholder search with filter
|
// Placeholder search with filter
|
||||||
let filter = Filter::from_str("label = sign").unwrap().unwrap();
|
let filter = Filter::from_str("label = sign").unwrap().unwrap();
|
||||||
let results = index.search(&wtxn).filter(filter).execute().unwrap();
|
let results = index.search(&rtxn).filter(filter).execute().unwrap();
|
||||||
assert!(results.documents_ids.is_empty());
|
assert!(results.documents_ids.is_empty());
|
||||||
|
|
||||||
db_snap!(index, word_docids);
|
db_snap!(index, word_docids);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
source: milli/src/update/index_documents/mod.rs
|
source: crates/milli/src/update/index_documents/mod.rs
|
||||||
---
|
---
|
||||||
1 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, ]
|
1 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, ]
|
||||||
2 [21, ]
|
2.2 [21, ]
|
||||||
36 [3, ]
|
36 [3, ]
|
||||||
37 [4, ]
|
37 [4, ]
|
||||||
38 [5, ]
|
38 [5, ]
|
||||||
@ -35,4 +35,3 @@ letter [1, ]
|
|||||||
outdoor [4, ]
|
outdoor [4, ]
|
||||||
painting [3, ]
|
painting [3, ]
|
||||||
pattern [2, 3, 9, 10, 13, 14, 16, ]
|
pattern [2, 3, 9, 10, 13, 14, 16, ]
|
||||||
|
|
||||||
|
@ -1,21 +1,15 @@
|
|||||||
---
|
---
|
||||||
source: milli/src/update/index_documents/mod.rs
|
source: crates/milli/src/update/index_documents/mod.rs
|
||||||
---
|
---
|
||||||
0 [1, ]
|
|
||||||
1 [2, ]
|
1 [2, ]
|
||||||
10 [1, ]
|
10.0 [1, ]
|
||||||
12 [0, ]
|
|
||||||
1344 [3, ]
|
1344 [3, ]
|
||||||
2 [0, ]
|
2 [0, ]
|
||||||
23 [5, ]
|
25.99 [2, ]
|
||||||
25 [2, ]
|
3.5 [0, ]
|
||||||
3 [0, ]
|
|
||||||
35 [5, ]
|
|
||||||
4 [4, ]
|
4 [4, ]
|
||||||
42 [0, 5, ]
|
42 [5, ]
|
||||||
456 [1, ]
|
456 [1, ]
|
||||||
5 [0, ]
|
|
||||||
99 [2, ]
|
|
||||||
adams [5, ]
|
adams [5, ]
|
||||||
adventure [1, ]
|
adventure [1, ]
|
||||||
alice [2, ]
|
alice [2, ]
|
||||||
@ -54,4 +48,3 @@ the [3, 4, 5, ]
|
|||||||
to [5, ]
|
to [5, ]
|
||||||
tolkien [3, ]
|
tolkien [3, ]
|
||||||
wonderland [2, ]
|
wonderland [2, ]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user