diff --git a/Cargo.lock b/Cargo.lock index 02a09ca2d..94aea9e2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -908,7 +908,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] -name = "mega-mini-indexer" +name = "memchr" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" + +[[package]] +name = "memmap" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" +dependencies = [ + "libc", + "winapi 0.3.8", +] + +[[package]] +name = "memoffset" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8" +dependencies = [ + "autocfg 1.0.0", +] + +[[package]] +name = "milli" version = "0.1.0" dependencies = [ "anyhow", @@ -941,31 +966,6 @@ dependencies = [ "warp", ] -[[package]] -name = "memchr" -version = "2.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" - -[[package]] -name = "memmap" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" -dependencies = [ - "libc", - "winapi 0.3.8", -] - -[[package]] -name = "memoffset" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8" -dependencies = [ - "autocfg 1.0.0", -] - [[package]] name = "mime" version = "0.2.6" diff --git a/Cargo.toml b/Cargo.toml index 41e1af998..5d62757e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "mega-mini-indexer" +name = "milli" version = "0.1.0" authors = ["Kerollmops "] edition = "2018" diff --git a/README.md b/README.md index a12f1bc7f..2f556b529 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mega-mini-indexer +# milli A prototype of concurrent indexing, only contains postings ids ## Introduction diff --git a/benches/search.rs b/benches/search.rs index 3db9b3db1..922c9ec66 100644 --- a/benches/search.rs +++ b/benches/search.rs @@ -1,7 +1,7 @@ use std::time::Duration; use heed::EnvOpenOptions; -use mega_mini_indexer::Index; +use milli::Index; use criterion::{criterion_group, criterion_main, BenchmarkId}; fn bench_search(c: &mut criterion::Criterion) { diff --git a/src/bin/indexer.rs b/src/bin/indexer.rs index dffa75255..a9191b618 100644 --- a/src/bin/indexer.rs +++ b/src/bin/indexer.rs @@ -17,7 +17,7 @@ use roaring::RoaringBitmap; use slice_group_by::StrGroupBy; use structopt::StructOpt; -use mega_mini_indexer::{FastMap4, SmallVec32, Index, DocumentId, Position}; +use milli::{FastMap4, SmallVec32, Index, DocumentId, Position}; const LMDB_MAX_KEY_LENGTH: usize = 512; const ONE_MILLION: usize = 1_000_000; diff --git a/src/bin/search.rs b/src/bin/search.rs index 22015860a..5f5d458f4 100644 --- a/src/bin/search.rs +++ b/src/bin/search.rs @@ -5,7 +5,7 @@ use std::time::Instant; use heed::EnvOpenOptions; use structopt::StructOpt; -use mega_mini_indexer::{Index, BEU32}; +use milli::{Index, BEU32}; #[cfg(target_os = "linux")] #[global_allocator] diff --git a/src/bin/serve.rs b/src/bin/serve.rs index 29a7fb3a2..387c26d1b 100644 --- a/src/bin/serve.rs +++ b/src/bin/serve.rs @@ -10,7 +10,7 @@ use serde::Deserialize; use structopt::StructOpt; use warp::{Filter, http::Response}; -use mega_mini_indexer::{BEU32, Index}; +use milli::{BEU32, Index}; #[cfg(target_os = "linux")] #[global_allocator] diff --git a/src/bin/stats.rs b/src/bin/stats.rs index 91632b437..561afa65f 100644 --- a/src/bin/stats.rs +++ b/src/bin/stats.rs @@ -6,7 +6,7 @@ use cow_utils::CowUtils; use roaring::RoaringBitmap; use slice_group_by::StrGroupBy; -use mega_mini_indexer::{FastMap4, DocumentId, SmallString32}; +use milli::{FastMap4, DocumentId, SmallString32}; const MAX_POSITION: usize = 1000; const MAX_ATTRIBUTES: usize = u32::max_value() as usize / MAX_POSITION;