Commit ac81ac7a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use TokenBigramSplitSymbolAlphaDigit parser instead of TokenBigramSplitSymbolAlpha by default.

so that we have less misses even though we have more noises.

to migrate, you can use the following SQL :

ALTER TABLE catalog_full_text
  DROP KEY title,
  DROP KEY description,
  ENGINE=mroonga,
  ADD FULLTEXT KEY title (`title`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"',
  ADD FULLTEXT KEY description (`description`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"';

ALTER TABLE content_translation
  DROP KEY translated_text,
  ENGINE=mroonga,
  ADD FULLTEXT KEY translated_text (`translated_text`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"';

ALTER TABLE full_text
  DROP KEY SearchableText,
  ENGINE=mroonga,
  ADD FULLTEXT KEY SearchableText (`SearchableText`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"';
parent e6ed5b2c
...@@ -67,8 +67,8 @@ CREATE TABLE `catalog_full_text` (\n ...@@ -67,8 +67,8 @@ CREATE TABLE `catalog_full_text` (\n
`title` varchar(255) default \'\',\n `title` varchar(255) default \'\',\n
`description` text,\n `description` text,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
FULLTEXT `title` (`title`) COMMENT \'parser "TokenBigramSplitSymbolAlpha"\',\n FULLTEXT `title` (`title`) COMMENT \'parser "TokenBigramSplitSymbolAlphaDigit"\',\n
FULLTEXT `description` (`description`) COMMENT \'parser "TokenBigramSplitSymbolAlpha"\'\n FULLTEXT `description` (`description`) COMMENT \'parser "TokenBigramSplitSymbolAlphaDigit"\'\n
) ENGINE=mroonga;\n ) ENGINE=mroonga;\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
`content_language` VARBINARY(100),\n `content_language` VARBINARY(100),\n
`translated_text` TEXT,\n `translated_text` TEXT,\n
PRIMARY KEY (`uid`, `property_name`, `content_language`),\n PRIMARY KEY (`uid`, `property_name`, `content_language`),\n
FULLTEXT KEY (`translated_text`) COMMENT \'parser "TokenBigramSplitSymbolAlpha"\'\n FULLTEXT KEY (`translated_text`) COMMENT \'parser "TokenBigramSplitSymbolAlphaDigit"\'\n
) ENGINE=mroonga;\n ) ENGINE=mroonga;\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -66,7 +66,7 @@ CREATE TABLE `full_text` (\n ...@@ -66,7 +66,7 @@ CREATE TABLE `full_text` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n `uid` BIGINT UNSIGNED NOT NULL,\n
`SearchableText` MEDIUMTEXT,\n `SearchableText` MEDIUMTEXT,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
FULLTEXT `SearchableText` (`SearchableText`) COMMENT \'parser "TokenBigramSplitSymbolAlpha"\'\n FULLTEXT `SearchableText` (`SearchableText`) COMMENT \'parser "TokenBigramSplitSymbolAlphaDigit"\'\n
) ENGINE=mroonga;\n ) ENGINE=mroonga;\n
</string> </value> </string> </value>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment