Make it work with the dumps

This commit is contained in:
Kerollmops 2023-01-25 14:41:36 +01:00
parent 0b08413c98
commit 29961b8c6b
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 7 additions and 2 deletions

View file

@ -183,7 +183,7 @@ impl CompatV5ToV6 {
.map(|index| match index {
v5::StarOr::Star => v6::StarOr::Star,
v5::StarOr::Other(uid) => {
v6::StarOr::Other(v6::IndexUid::new_unchecked(uid.as_str()))
v6::StarOr::Other(v6::IndexUidPattern::new_unchecked(uid.as_str()))
}
})
.collect(),

View file

@ -35,7 +35,7 @@ pub type PaginationSettings = meilisearch_types::settings::PaginationSettings;
// everything related to the api keys
pub type Action = meilisearch_types::keys::Action;
pub type StarOr<T> = meilisearch_types::star_or::StarOr<T>;
pub type IndexUid = meilisearch_types::index_uid::IndexUid;
pub type IndexUidPattern = meilisearch_types::index_uid_pattern::IndexUidPattern;
// everything related to the errors
pub type ResponseError = meilisearch_types::error::ResponseError;