mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 22:14:32 +01:00
fix: Make the examples compile
This commit is contained in:
parent
dff81bb161
commit
2844cb5bca
@ -464,6 +464,10 @@ impl Index {
|
||||
self.0.lease()
|
||||
}
|
||||
|
||||
pub fn schema(&self) -> Schema {
|
||||
self.0.lease().schema.clone()
|
||||
}
|
||||
|
||||
pub fn documents_addition(&self) -> DocumentsAddition {
|
||||
let ranked_map = self.0.lease().ranked_map.clone();
|
||||
DocumentsAddition::new(self, ranked_map)
|
||||
|
@ -52,7 +52,7 @@ fn index(
|
||||
{
|
||||
let database = Database::start_default(database_path)?;
|
||||
|
||||
let index = database.create_index("default".to_string(), schema.clone())?;
|
||||
let index = database.create_index("default", schema.clone())?;
|
||||
|
||||
let mut rdr = csv::Reader::from_path(csv_data_path)?;
|
||||
let mut raw_record = csv::StringRecord::new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user