mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Import milli from meilisearch-lib in meilisearch-http
This commit is contained in:
parent
7e65816d63
commit
ee6be4f6b9
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1909,7 +1909,6 @@ dependencies = [
|
|||||||
"meilisearch-auth",
|
"meilisearch-auth",
|
||||||
"meilisearch-error",
|
"meilisearch-error",
|
||||||
"meilisearch-lib",
|
"meilisearch-lib",
|
||||||
"milli",
|
|
||||||
"mime",
|
"mime",
|
||||||
"num_cpus",
|
"num_cpus",
|
||||||
"obkv",
|
"obkv",
|
||||||
|
@ -47,7 +47,6 @@ log = "0.4.14"
|
|||||||
meilisearch-auth = { path = "../meilisearch-auth" }
|
meilisearch-auth = { path = "../meilisearch-auth" }
|
||||||
meilisearch-error = { path = "../meilisearch-error" }
|
meilisearch-error = { path = "../meilisearch-error" }
|
||||||
meilisearch-lib = { path = "../meilisearch-lib" }
|
meilisearch-lib = { path = "../meilisearch-lib" }
|
||||||
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.24.0" }
|
|
||||||
mime = "0.3.16"
|
mime = "0.3.16"
|
||||||
num_cpus = "1.13.1"
|
num_cpus = "1.13.1"
|
||||||
obkv = "0.2.0"
|
obkv = "0.2.0"
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
use meilisearch_lib::milli::heed::Env;
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
|
|
||||||
pub trait EnvSizer {
|
pub trait EnvSizer {
|
||||||
fn size(&self) -> u64;
|
fn size(&self) -> u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EnvSizer for milli::heed::Env {
|
impl EnvSizer for Env {
|
||||||
fn size(&self) -> u64 {
|
fn size(&self) -> u64 {
|
||||||
WalkDir::new(self.path())
|
WalkDir::new(self.path())
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
@ -13,7 +13,6 @@ mod update_file_store;
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
pub use index_controller::MeiliSearch;
|
pub use index_controller::MeiliSearch;
|
||||||
|
|
||||||
pub use milli;
|
pub use milli;
|
||||||
|
|
||||||
mod compression;
|
mod compression;
|
||||||
|
Loading…
Reference in New Issue
Block a user