mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Fix indexing of word_position_docid and fid
This commit is contained in:
parent
66ddee4390
commit
130d2061bd
6 changed files with 141 additions and 5 deletions
|
@ -248,6 +248,11 @@ pub fn snap_word_position_docids(index: &Index) -> String {
|
|||
&format!("{word:<16} {position:<6} {}", display_bitmap(&b))
|
||||
})
|
||||
}
|
||||
pub fn snap_word_fid_docids(index: &Index) -> String {
|
||||
make_db_snap_from_iter!(index, word_fid_docids, |((word, fid), b)| {
|
||||
&format!("{word:<16} {fid:<3} {}", display_bitmap(&b))
|
||||
})
|
||||
}
|
||||
pub fn snap_field_id_word_count_docids(index: &Index) -> String {
|
||||
make_db_snap_from_iter!(index, field_id_word_count_docids, |((field_id, word_count), b)| {
|
||||
&format!("{field_id:<3} {word_count:<6} {}", display_bitmap(&b))
|
||||
|
@ -477,6 +482,9 @@ macro_rules! full_snap_of_db {
|
|||
($index:ident, word_position_docids) => {{
|
||||
$crate::snapshot_tests::snap_word_position_docids(&$index)
|
||||
}};
|
||||
($index:ident, word_fid_docids) => {{
|
||||
$crate::snapshot_tests::snap_word_fid_docids(&$index)
|
||||
}};
|
||||
($index:ident, field_id_word_count_docids) => {{
|
||||
$crate::snapshot_tests::snap_field_id_word_count_docids(&$index)
|
||||
}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue