Test new indexer

This commit is contained in:
Clémentine Urquizar 2021-08-16 13:43:06 +02:00 committed by Clément Renault
parent 14f9056349
commit 24e84d7ca1
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
3 changed files with 64 additions and 8 deletions

68
Cargo.lock generated
View File

@ -458,6 +458,20 @@ name = "bytemuck"
version = "1.7.0" version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9966d2ab714d0f785dbac0a0396251a35280aeb42413281617d0209ab4898435" checksum = "9966d2ab714d0f785dbac0a0396251a35280aeb42413281617d0209ab4898435"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e215f8c2f9f79cb53c8335e687ffd07d5bfcb6fe5fc80723762d0be46e7cc54"
dependencies = [
"proc-macro2 1.0.27",
"quote 1.0.9",
"syn 1.0.73",
]
[[package]] [[package]]
name = "byteorder" name = "byteorder"
@ -630,6 +644,12 @@ dependencies = [
"version_check", "version_check",
] ]
[[package]]
name = "core-foundation-sys"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b"
[[package]] [[package]]
name = "cow-utils" name = "cow-utils"
version = "0.1.2" version = "0.1.2"
@ -787,6 +807,12 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
[[package]]
name = "doc-comment"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]] [[package]]
name = "downcast" name = "downcast"
version = "0.10.0" version = "0.10.0"
@ -1097,9 +1123,11 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
[[package]] [[package]]
name = "grenad" name = "grenad"
version = "0.1.0" version = "0.2.0"
source = "git+https://github.com/Kerollmops/grenad.git?rev=3adcb26#3adcb267dcbc590c7da10eb5f887a254865b3dbe" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29a631f65b886f839c561fc5d086ba0fb1a27df5bb52f57439e415238329ce08"
dependencies = [ dependencies = [
"bytemuck",
"byteorder", "byteorder",
"flate2", "flate2",
"log", "log",
@ -1594,7 +1622,7 @@ dependencies = [
"log", "log",
"main_error", "main_error",
"meilisearch-error", "meilisearch-error",
"meilisearch-tokenizer", "meilisearch-tokenizer 0.2.4",
"memmap", "memmap",
"milli", "milli",
"mime", "mime",
@ -1645,7 +1673,7 @@ dependencies = [
"once_cell", "once_cell",
"slice-group-by", "slice-group-by",
"unicode-segmentation", "unicode-segmentation",
"whatlang", "whatlang 0.12.0",
] ]
[[package]] [[package]]
@ -1676,12 +1704,14 @@ dependencies = [
[[package]] [[package]]
name = "milli" name = "milli"
version = "0.11.0" version = "0.11.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.11.0#c51bb6789cb3fbb6511138374b3443f9116a445c" source = "git+https://github.com/meilisearch/milli.git?branch=plug-new-indexer#a1dc915af8d62c77f0431bb1d0fc4e53cc35ff42"
dependencies = [ dependencies = [
"bstr", "bstr",
"byte-unit",
"byteorder", "byteorder",
"chrono", "chrono",
"concat-arrays", "concat-arrays",
"crossbeam-channel",
"csv", "csv",
"either", "either",
"flate2", "flate2",
@ -1695,7 +1725,7 @@ dependencies = [
"linked-hash-map", "linked-hash-map",
"log", "log",
"logging_timer", "logging_timer",
"meilisearch-tokenizer", "meilisearch-tokenizer 0.2.3",
"memmap", "memmap",
"obkv", "obkv",
"once_cell", "once_cell",
@ -1709,6 +1739,7 @@ dependencies = [
"slice-group-by", "slice-group-by",
"smallstr", "smallstr",
"smallvec", "smallvec",
"sysinfo",
"tempfile", "tempfile",
"uuid", "uuid",
] ]
@ -2812,6 +2843,22 @@ dependencies = [
"unicode-xid 0.2.2", "unicode-xid 0.2.2",
] ]
[[package]]
name = "sysinfo"
version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e7de153d0438a648bb71e06e300e54fc641685e96af96d49b843f43172d341c"
dependencies = [
"cfg-if 1.0.0",
"core-foundation-sys",
"doc-comment",
"libc",
"ntapi",
"once_cell",
"rayon",
"winapi",
]
[[package]] [[package]]
name = "tar" name = "tar"
version = "0.4.35" version = "0.4.35"
@ -3319,6 +3366,15 @@ dependencies = [
"webpki", "webpki",
] ]
[[package]]
name = "whatlang"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc0289c1d1548414a5645e6583e118e9c569c579ec2a0c32417cc3dbf7a89075"
dependencies = [
"hashbrown 0.7.2",
]
[[package]] [[package]]
name = "whatlang" name = "whatlang"
version = "0.12.0" version = "0.12.0"

View File

@ -50,7 +50,7 @@ main_error = "0.1.0"
meilisearch-error = { path = "../meilisearch-error" } meilisearch-error = { path = "../meilisearch-error" }
meilisearch-tokenizer = { git = "https://github.com/meilisearch/tokenizer.git", tag = "v0.2.5" } meilisearch-tokenizer = { git = "https://github.com/meilisearch/tokenizer.git", tag = "v0.2.5" }
memmap = "0.7.0" memmap = "0.7.0"
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.11.0" } milli = { git = "https://github.com/meilisearch/milli.git", branch = "plug-new-indexer" }
mime = "0.3.16" mime = "0.3.16"
num_cpus = "1.13.0" num_cpus = "1.13.0"
once_cell = "1.5.2" once_cell = "1.5.2"

View File

@ -1,8 +1,8 @@
use std::fs::File; use std::fs::File;
use crate::index::Index; use crate::index::Index;
use milli::update::UpdateBuilder;
use milli::CompressionType; use milli::CompressionType;
use milli::update::UpdateBuilder;
use rayon::ThreadPool; use rayon::ThreadPool;
use crate::index_controller::UpdateMeta; use crate::index_controller::UpdateMeta;