mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Add a snapshot for the NULL facet database
This commit is contained in:
parent
0ad53784e7
commit
ff86073288
@ -271,6 +271,11 @@ pub fn snap_facet_id_exists_docids(index: &Index) -> String {
|
|||||||
&format!("{facet_id:<3} {}", display_bitmap(&docids))
|
&format!("{facet_id:<3} {}", display_bitmap(&docids))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
pub fn snap_facet_id_is_null_docids(index: &Index) -> String {
|
||||||
|
make_db_snap_from_iter!(index, facet_id_is_null_docids, |(facet_id, docids)| {
|
||||||
|
&format!("{facet_id:<3} {}", display_bitmap(&docids))
|
||||||
|
})
|
||||||
|
}
|
||||||
pub fn snap_facet_id_string_docids(index: &Index) -> String {
|
pub fn snap_facet_id_string_docids(index: &Index) -> String {
|
||||||
make_db_snap_from_iter!(index, facet_id_string_docids, |(
|
make_db_snap_from_iter!(index, facet_id_string_docids, |(
|
||||||
FacetGroupKey { field_id, level, left_bound },
|
FacetGroupKey { field_id, level, left_bound },
|
||||||
@ -495,6 +500,9 @@ macro_rules! full_snap_of_db {
|
|||||||
($index:ident, facet_id_exists_docids) => {{
|
($index:ident, facet_id_exists_docids) => {{
|
||||||
$crate::snapshot_tests::snap_facet_id_exists_docids(&$index)
|
$crate::snapshot_tests::snap_facet_id_exists_docids(&$index)
|
||||||
}};
|
}};
|
||||||
|
($index:ident, facet_id_is_null_docids) => {{
|
||||||
|
$crate::snapshot_tests::snap_facet_id_is_null_docids(&$index)
|
||||||
|
}};
|
||||||
($index:ident, documents_ids) => {{
|
($index:ident, documents_ids) => {{
|
||||||
$crate::snapshot_tests::snap_documents_ids(&$index)
|
$crate::snapshot_tests::snap_documents_ids(&$index)
|
||||||
}};
|
}};
|
||||||
|
Loading…
Reference in New Issue
Block a user