mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Fix indexing of word_position_docid and fid
This commit is contained in:
committed by
Louis Dureuil
parent
66ddee4390
commit
130d2061bd
@ -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)
|
||||
}};
|
||||
|
Reference in New Issue
Block a user