pub fn open<D: Directory>(directory: D) -> Result<Index> {
        let directory = ManagedDirectory::wrap(directory)?;
        let inventory = SegmentMetaInventory::default();
        let metas = load_metas(&directory, &inventory)?;
        Index::create_from_metas(directory, &metas, inventory)
    }
/// Open the index using the provided directory
Open the index using the provided directory
Open the index using the provided directory
pub fn open<D: Directory>(directory: D) -> Result<Index> {
        let directory = ManagedDirectory::wrap(directory)?;
        let inventory = SegmentMetaInventory::default();
        let metas = load_metas(&directory, &inventory)?;
        Index::create_from_metas(directory, &metas, inventory)
    }
pub fn open < D : Directory > ( directory : D ) -> Result < Index > { let directory = ManagedDirectory :: wrap ( directory ) ? ; let inventory = SegmentMetaInventory :: default ( ) ; let metas = load_metas ( & directory , & inventory ) ? ; Index :: create_from_metas ( directory , & metas , inventory ) }
Open the index using the provided directory
Open the index using the provided directory
directory
D
directory
D