Expose indexer opts

This commit is contained in:
many
2021-11-22 15:14:26 +01:00
committed by ManyTheFish
parent 3273fe0470
commit 8058970523
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ pub struct Opt {
pub log_level: String, pub log_level: String,
#[serde(skip)] #[serde(skip)]
#[clap(skip)] #[clap(flatten)]
pub indexer_options: IndexerOpts, pub indexer_options: IndexerOpts,
#[serde(flatten)] #[serde(flatten)]

View File

@ -25,7 +25,7 @@ pub struct IndexerOpts {
/// In case the engine is unable to retrieve the available memory the engine will /// In case the engine is unable to retrieve the available memory the engine will
/// try to use the memory it needs but without real limit, this can lead to /// try to use the memory it needs but without real limit, this can lead to
/// Out-Of-Memory issues and it is recommended to specify the amount of memory to use. /// Out-Of-Memory issues and it is recommended to specify the amount of memory to use.
#[clap(long, default_value_t)] #[clap(long, default_value_t, env = "MEILI_MAX_MEMORY")]
pub max_memory: MaxMemory, pub max_memory: MaxMemory,
/// The name of the compression algorithm to use when compressing intermediate /// The name of the compression algorithm to use when compressing intermediate
@ -40,7 +40,7 @@ pub struct IndexerOpts {
pub chunk_compression_level: Option<u32>, pub chunk_compression_level: Option<u32>,
/// Number of parallel jobs for indexing, defaults to # of CPUs. /// Number of parallel jobs for indexing, defaults to # of CPUs.
#[clap(long)] #[clap(long, env = "MEILI_INDEXING_JOBS")]
pub indexing_jobs: Option<usize>, pub indexing_jobs: Option<usize>,
} }