From a677c605c593ab6c2bd94b28974283ab5e2d0a10 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 5 Dec 2023 22:10:18 +0100 Subject: [PATCH] Use MDMysqli's default blend modes for manticore index setup --- src/NodaDbAdmin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NodaDbAdmin.php b/src/NodaDbAdmin.php index 3cb28e8..28e2a8b 100644 --- a/src/NodaDbAdmin.php +++ b/src/NodaDbAdmin.php @@ -29,6 +29,9 @@ final class NodaDbAdmin { `timestamp` timestamp) min_infix_len = '3' charset_table='" . MDMysqli::MANTICORE_CHARSET_TABLE . "' + expansion_limit = '32' + blend_chars = '" . MDMysqliSetup::DEFAULT_MANTICORE_BLEND_CHARS . "' + blend_mode = '" . MDMysqliSetup::DEFAULT_MANTICORE_BLEND_MODE . "' rt_mem_limit = '2G'"); MDConsole::write("Create table `" . $index_name . "`"); @@ -52,8 +55,8 @@ final class NodaDbAdmin { `timestamp` timestamp) min_infix_len = '3' expansion_limit = '32' - blend_chars = '., :, &, -, ;' - blend_mode = 'trim_head, trim_tail, trim_both, trim_all, trim_none, skip_pure' + blend_chars = '" . MDMysqliSetup::DEFAULT_MANTICORE_BLEND_CHARS . "' + blend_mode = '" . MDMysqliSetup::DEFAULT_MANTICORE_BLEND_MODE . "' charset_table='" . MDMysqli::MANTICORE_CHARSET_TABLE . "' rt_mem_limit = '2G'"); MDConsole::write("Create table `" . $index_name . "`");