mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-24 02:55:06 +08:00
0c84a40298
reusable transform rework update api add indexer config fix tests review changes Co-authored-by: Clément Renault <clement@meilisearch.com> fmt
30 lines
849 B
Rust
30 lines
849 B
Rust
use grenad::CompressionType;
|
|
use rayon::ThreadPool;
|
|
|
|
#[derive(Debug)]
|
|
pub struct IndexerConfig {
|
|
pub log_every_n: Option<usize>,
|
|
pub max_nb_chunks: Option<usize>,
|
|
pub documents_chunk_size: Option<usize>,
|
|
pub max_memory: Option<usize>,
|
|
pub chunk_compression_type: CompressionType,
|
|
pub chunk_compression_level: Option<u32>,
|
|
pub thread_pool: Option<ThreadPool>,
|
|
pub max_positions_per_attributes: Option<u32>,
|
|
}
|
|
|
|
impl Default for IndexerConfig {
|
|
fn default() -> Self {
|
|
Self {
|
|
log_every_n: None,
|
|
max_nb_chunks: None,
|
|
documents_chunk_size: None,
|
|
max_memory: None,
|
|
chunk_compression_type: CompressionType::None,
|
|
chunk_compression_level: None,
|
|
thread_pool: None,
|
|
max_positions_per_attributes: None,
|
|
}
|
|
}
|
|
}
|