write the compat layer from v2 to v3

This commit is contained in:
Tamo 2022-10-10 14:32:11 +02:00 committed by Clément Renault
parent 6107540ad4
commit 06fadb3004
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
19 changed files with 1737 additions and 36 deletions

View file

@ -41,7 +41,7 @@ use crate::{IndexMetadata, Result, Version};
use self::meta::{DumpMeta, IndexUuid};
use super::IndexReader;
use super::{compat::v2_to_v3::CompatV2ToV3, IndexReader};
pub type Document = serde_json::Map<String, serde_json::Value>;
pub type Settings<T> = settings::Settings<T>;
@ -99,11 +99,13 @@ impl V2Reader {
})
}
/*
pub fn to_v3(self) -> CompatV2ToV3 {
CompatV2ToV3::new(self)
}
*/
pub fn index_uuid(&self) -> Vec<IndexUuid> {
self.index_uuid.clone()
}
pub fn version(&self) -> Version {
Version::V2