cloudillo_search/
settings.rs1use crate::prelude::*;
7use cloudillo_core::settings::types::{
8 PermissionLevel, SettingDefinition, SettingScope, SettingValue, SettingsRegistry,
9};
10
11pub fn register_settings(registry: &mut SettingsRegistry) -> ClResult<()> {
13 registry.register(
16 SettingDefinition::builder("search.store_text")
17 .description(
18 "Store the extracted plain text of documents and actions alongside the search \
19 index. Full-text search works either way; turning this off drops the stored copy \
20 to save disk, at the cost of highlighted result snippets. Changing it requires a \
21 reindex (POST /api/search/reindex).",
22 )
23 .default(SettingValue::Bool(true))
24 .scope(SettingScope::Tenant)
25 .permission(PermissionLevel::User)
27 .build()?,
28 )?;
29
30 Ok(())
31}
32
33