Transform experimental_no_edition_2024_for_settings into a config

This commit is contained in:
ManyTheFish 2025-06-30 11:49:03 +02:00
parent 6db5939f84
commit 6b2b8ed676
5 changed files with 39 additions and 5 deletions

View file

@ -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),