mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Transform experimental_no_edition_2024_for_settings into a config
This commit is contained in:
parent
6db5939f84
commit
6b2b8ed676
5 changed files with 39 additions and 5 deletions
|
@ -15,6 +15,7 @@ pub struct IndexerConfig {
|
|||
pub thread_pool: ThreadPoolNoAbort,
|
||||
pub max_positions_per_attributes: Option<u32>,
|
||||
pub skip_index_budget: bool,
|
||||
pub experimental_no_edition_2024_for_settings: bool,
|
||||
}
|
||||
|
||||
impl IndexerConfig {
|
||||
|
@ -63,6 +64,7 @@ impl Default for IndexerConfig {
|
|||
chunk_compression_level: None,
|
||||
max_positions_per_attributes: None,
|
||||
skip_index_budget: false,
|
||||
experimental_no_edition_2024_for_settings: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1441,7 +1441,7 @@ impl<'a, 't, 'i> Settings<'a, 't, 'i> {
|
|||
MSP: Fn() -> bool + Sync,
|
||||
{
|
||||
// force the old indexer if the environment says so
|
||||
if std::env::var_os("MEILI_EXPERIMENTAL_NO_EDITION_2024_FOR_SETTINGS").is_some() {
|
||||
if self.indexer_config.experimental_no_edition_2024_for_settings {
|
||||
return self
|
||||
.legacy_execute(
|
||||
|indexing_step| tracing::debug!(update = ?indexing_step),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue