diff --git a/administrator/components/com_admin/sql/updates/mysql/7.0.0-2026-08-17.sql b/administrator/components/com_admin/sql/updates/mysql/7.0.0-2026-08-17.sql new file mode 100644 index 0000000000000..ea3fc29596f02 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/7.0.0-2026-08-17.sql @@ -0,0 +1,5 @@ +-- +-- Drop the unused finder token tables +-- +DROP TABLE IF EXISTS `#__finder_tokens_aggregate`; +DROP TABLE IF EXISTS `#__finder_tokens`; diff --git a/administrator/components/com_admin/sql/updates/postgresql/7.0.0-2026-08-17.sql b/administrator/components/com_admin/sql/updates/postgresql/7.0.0-2026-08-17.sql new file mode 100644 index 0000000000000..64a2c771bbb95 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/7.0.0-2026-08-17.sql @@ -0,0 +1,5 @@ +-- +-- Drop the unused finder token tables +-- +DROP TABLE IF EXISTS "#__finder_tokens_aggregate"; +DROP TABLE IF EXISTS "#__finder_tokens"; diff --git a/administrator/components/com_finder/sql/install.mysql.sql b/administrator/components/com_finder/sql/install.mysql.sql index 6fca210c09d4b..50a92bef75508 100644 --- a/administrator/components/com_finder/sql/install.mysql.sql +++ b/administrator/components/com_finder/sql/install.mysql.sql @@ -341,43 +341,6 @@ INSERT INTO `#__finder_terms_common` (`term`, `language`, `custom`) VALUES ('too', 'en', 0), ('very', 'en', 0); --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens` ( - `term` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, - `stem` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `common` tinyint unsigned NOT NULL DEFAULT 0, - `phrase` tinyint unsigned NOT NULL DEFAULT 0, - `weight` float unsigned NOT NULL DEFAULT 1, - `context` tinyint unsigned NOT NULL DEFAULT 2, - `language` char(7) NOT NULL DEFAULT '', - KEY `idx_word` (`term`), - KEY `idx_stem` (`stem`), - KEY `idx_context` (`context`), - KEY `idx_language` (`language`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` ( - `term_id` int unsigned NOT NULL, - `term` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, - `stem` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `common` tinyint unsigned NOT NULL DEFAULT 0, - `phrase` tinyint unsigned NOT NULL DEFAULT 0, - `term_weight` float unsigned NOT NULL DEFAULT 0, - `context` tinyint unsigned NOT NULL DEFAULT 2, - `context_weight` float unsigned NOT NULL DEFAULT 0, - `total_weight` float unsigned NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - KEY `token` (`term`), - KEY `keyword_id` (`term_id`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - -- -- Table structure for table `#__finder_types` -- diff --git a/administrator/components/com_finder/sql/install.postgresql.sql b/administrator/components/com_finder/sql/install.postgresql.sql index 999d63c1eab24..0beb3ae06f8df 100644 --- a/administrator/components/com_finder/sql/install.postgresql.sql +++ b/administrator/components/com_finder/sql/install.postgresql.sql @@ -343,43 +343,6 @@ INSERT INTO "#__finder_terms_common" ("term", "language", "custom") VALUES ('too', 'en', 0), ('very', 'en', 0); --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens" ( - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "weight" numeric(8,2) DEFAULT 1 NOT NULL, - "context" smallint DEFAULT 2 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_idx_word" on "#__finder_tokens" ("term"); -CREATE INDEX "#__finder_tokens_idx_stem" on "#__finder_tokens" ("stem"); -CREATE INDEX "#__finder_tokens_idx_context" on "#__finder_tokens" ("context"); -CREATE INDEX "#__finder_tokens_idx_language" on "#__finder_tokens" ("language"); - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens_aggregate" ( - "term_id" integer NOT NULL, - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "term_weight" numeric(8,2) NOT NULL DEFAULT 0, - "context" smallint DEFAULT 2 NOT NULL, - "context_weight" numeric(8,2) NOT NULL DEFAULT 0, - "total_weight" numeric(8,2) NOT NULL DEFAULT 0, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_aggregate_token" on "#__finder_tokens_aggregate" ("term"); -CREATE INDEX "_#__finder_tokens_aggregate_keyword_id" on "#__finder_tokens_aggregate" ("term_id"); - -- -- Table structure for table `#__finder_types` -- diff --git a/administrator/components/com_finder/sql/uninstall.mysql.sql b/administrator/components/com_finder/sql/uninstall.mysql.sql index 5167421c75378..1f867f787e4de 100644 --- a/administrator/components/com_finder/sql/uninstall.mysql.sql +++ b/administrator/components/com_finder/sql/uninstall.mysql.sql @@ -6,6 +6,4 @@ DROP TABLE IF EXISTS `#__finder_taxonomy`; DROP TABLE IF EXISTS `#__finder_taxonomy_map`; DROP TABLE IF EXISTS `#__finder_terms`; DROP TABLE IF EXISTS `#__finder_terms_common`; -DROP TABLE IF EXISTS `#__finder_tokens`; -DROP TABLE IF EXISTS `#__finder_tokens_aggregate`; DROP TABLE IF EXISTS `#__finder_types`; diff --git a/administrator/components/com_finder/sql/uninstall.postgresql.sql b/administrator/components/com_finder/sql/uninstall.postgresql.sql index 06507dcd70af5..caf456c59b28e 100644 --- a/administrator/components/com_finder/sql/uninstall.postgresql.sql +++ b/administrator/components/com_finder/sql/uninstall.postgresql.sql @@ -6,6 +6,4 @@ DROP TABLE IF EXISTS "#__finder_taxonomy"; DROP TABLE IF EXISTS "#__finder_taxonomy_map"; DROP TABLE IF EXISTS "#__finder_terms"; DROP TABLE IF EXISTS "#__finder_terms_common"; -DROP TABLE IF EXISTS "#__finder_tokens"; -DROP TABLE IF EXISTS "#__finder_tokens_aggregate"; DROP TABLE IF EXISTS "#__finder_types"; diff --git a/administrator/components/com_finder/src/Model/IndexModel.php b/administrator/components/com_finder/src/Model/IndexModel.php index e2a903b861b7d..37cc0835333f1 100644 --- a/administrator/components/com_finder/src/Model/IndexModel.php +++ b/administrator/components/com_finder/src/Model/IndexModel.php @@ -385,12 +385,6 @@ public function purge() ]; $db->insertObject('#__finder_taxonomy', $root); - // Truncate the tokens tables. - $db->truncateTable('#__finder_tokens'); - - // Truncate the tokens aggregate table. - $db->truncateTable('#__finder_tokens_aggregate'); - // Include the finder plugins for the on purge events. PluginHelper::importPlugin('finder'); Factory::getApplication()->triggerEvent($this->event_after_purge); diff --git a/installation/sql/mysql/extensions.sql b/installation/sql/mysql/extensions.sql index 0686a3a74649b..f00ad18356685 100644 --- a/installation/sql/mysql/extensions.sql +++ b/installation/sql/mysql/extensions.sql @@ -588,47 +588,6 @@ INSERT INTO `#__finder_terms_common` (`term`, `language`, `custom`) VALUES -- -------------------------------------------------------- --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens` ( - `term` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, - `stem` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `common` tinyint unsigned NOT NULL DEFAULT 0, - `phrase` tinyint unsigned NOT NULL DEFAULT 0, - `weight` float unsigned NOT NULL DEFAULT 1, - `context` tinyint unsigned NOT NULL DEFAULT 2, - `language` char(7) NOT NULL DEFAULT '', - KEY `idx_word` (`term`), - KEY `idx_stem` (`stem`), - KEY `idx_context` (`context`), - KEY `idx_language` (`language`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` ( - `term_id` int unsigned NOT NULL, - `term` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, - `stem` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `common` tinyint unsigned NOT NULL DEFAULT 0, - `phrase` tinyint unsigned NOT NULL DEFAULT 0, - `term_weight` float unsigned NOT NULL DEFAULT 0, - `context` tinyint unsigned NOT NULL DEFAULT 2, - `context_weight` float unsigned NOT NULL DEFAULT 0, - `total_weight` float unsigned NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - KEY `token` (`term`), - KEY `keyword_id` (`term_id`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__finder_types` -- diff --git a/installation/sql/postgresql/extensions.sql b/installation/sql/postgresql/extensions.sql index 2aac95993f3a9..0e50997385618 100644 --- a/installation/sql/postgresql/extensions.sql +++ b/installation/sql/postgresql/extensions.sql @@ -564,43 +564,6 @@ INSERT INTO "#__finder_terms_common" ("term", "language", "custom") VALUES ('too', 'en', 0), ('very', 'en', 0); --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens" ( - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "weight" numeric(8,2) DEFAULT 1 NOT NULL, - "context" smallint DEFAULT 2 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_idx_word" on "#__finder_tokens" ("term"); -CREATE INDEX "#__finder_tokens_idx_stem" on "#__finder_tokens" ("stem"); -CREATE INDEX "#__finder_tokens_idx_context" on "#__finder_tokens" ("context"); -CREATE INDEX "#__finder_tokens_idx_language" on "#__finder_tokens" ("language"); - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens_aggregate" ( - "term_id" integer NOT NULL, - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "term_weight" numeric(8,2) NOT NULL DEFAULT 0, - "context" smallint DEFAULT 2 NOT NULL, - "context_weight" numeric(8,2) NOT NULL DEFAULT 0, - "total_weight" numeric(8,2) NOT NULL DEFAULT 0, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_aggregate_token" on "#__finder_tokens_aggregate" ("term"); -CREATE INDEX "_#__finder_tokens_aggregate_keyword_id" on "#__finder_tokens_aggregate" ("term_id"); - -- -- Table structure for table `#__finder_types` --