From 169e7396348563ecb670c8a3e8b8e1cad594b067 Mon Sep 17 00:00:00 2001 From: many Date: Wed, 8 Sep 2021 11:22:27 +0200 Subject: [PATCH] Remove useless indexer options --- meilisearch-http/src/option.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index e5aa1553a..39966092e 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -38,11 +38,6 @@ pub struct IndexerOpts { #[structopt(long, default_value)] pub max_memory: MaxMemory, - /// Size of the linked hash map cache when indexing. - /// The bigger it is, the faster the indexing is but the more memory it takes. - #[structopt(long, default_value = "500")] - pub linked_hash_map_size: usize, - /// The name of the compression algorithm to use when compressing intermediate /// Grenad chunks while indexing documents. /// @@ -54,18 +49,6 @@ pub struct IndexerOpts { #[structopt(long, requires = "chunk-compression-type")] pub chunk_compression_level: Option, - /// The number of bytes to remove from the begining of the chunks while reading/sorting - /// or merging them. - /// - /// File fusing must only be enable on file systems that support the `FALLOC_FL_COLLAPSE_RANGE`, - /// (i.e. ext4 and XFS). File fusing will only work if the `enable-chunk-fusing` is set. - #[structopt(long, default_value = "4 GiB")] - pub chunk_fusing_shrink_size: Byte, - - /// Enable the chunk fusing or not, this reduces the amount of disk space used. - #[structopt(long)] - pub enable_chunk_fusing: bool, - /// Number of parallel jobs for indexing, defaults to # of CPUs. #[structopt(long)] pub indexing_jobs: Option, @@ -77,11 +60,8 @@ impl Default for IndexerOpts { log_every_n: 100_000, max_nb_chunks: None, max_memory: MaxMemory::default(), - linked_hash_map_size: 500, chunk_compression_type: CompressionType::None, chunk_compression_level: None, - chunk_fusing_shrink_size: Byte::from_str("4GiB").unwrap(), - enable_chunk_fusing: false, indexing_jobs: None, } }