fn from_directory(mut directory: ManagedDirectory, schema: Schema) -> Result<Index> {
        save_new_metas(schema.clone(), directory.borrow_mut())?;
        let metas = IndexMeta::with_schema(schema);
        Index::create_from_metas(directory, &metas, SegmentMetaInventory::default())
    }
/// Create a new index from a directory.
///
/// This will overwrite existing meta.json
Create a new index from a directory.
This will overwrite existing meta.json
Create a new index from a directory . This will overwrite existing meta . json
fn from_directory(mut directory: ManagedDirectory, schema: Schema) -> Result<Index> {
        save_new_metas(schema.clone(), directory.borrow_mut())?;
        let metas = IndexMeta::with_schema(schema);
        Index::create_from_metas(directory, &metas, SegmentMetaInventory::default())
    }
fn from_directory ( mut directory : ManagedDirectory , schema : Schema ) -> Result < Index > { save_new_metas ( schema . clone ( ) , directory . borrow_mut ( ) ) ? ; let metas = IndexMeta :: with_schema ( schema ) ; Index :: create_from_metas ( directory , & metas , SegmentMetaInventory :: default ( ) ) }
Create a new index from a directory.
Create a new index from a directory .
directory
ManagedDirectory
schema
Schema
directory
ManagedDirectory
schema
Schema