From b70f5008476d0e91517d8ede4d2bf04563bed6c4 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 2 Apr 2025 15:46:36 -0500 Subject: [PATCH] Decrease minimum token count to 2 in InnoDB fulltext search --- README.md | 3 +++ config/mariadb/99-se.cnf | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 config/mariadb/99-se.cnf diff --git a/README.md b/README.md index f29a27f4..8f3ac87c 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,9 @@ sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test-secrets.in sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.conf /etc/php/*/fpm/pool.d/ sudo systemctl restart "php*-fpm.service" +# Link MariaDB configuration. +sudo ln -s /standardebooks.org/web/config/mariadb/99-se.cnf /etc/mysql/mariadb.conf.d/ + # Create and populate the SE database. mariadb < /standardebooks.org/web/config/sql/se.sql mariadb < /standardebooks.org/web/config/sql/users.sql diff --git a/config/mariadb/99-se.cnf b/config/mariadb/99-se.cnf new file mode 100644 index 00000000..210b2ab1 --- /dev/null +++ b/config/mariadb/99-se.cnf @@ -0,0 +1,3 @@ +[mysqld] +# Decrease the minimum token size for InnoDB fulltext searches to 2, so that we can match titles like . +innodb_ft_min_token_size = 2