Re: modify a character set file: add & and - as word characters
Posted by: Alexander Barkov
Date: December 01, 2006 04:58AM

This is not a correct way to modify the character set file.
If you change the type of the dash character, you can break
MySQL parser - it will start to fail to parse certain types
of SQL queries.

The recommended way do make dash a word part for fulltext index
is to write your own fulltext parser using plugin interface
which was introduced in 5.1.

See the section "Full-Text Parser Plugins" of MySQL-5.1 manual:

http://dev.mysql.com/doc/refman/5.1/en/plugin-full-text-plugins.html

You can discuss how to write your own fulltext parsers at the
fulltext forum: http://forums.mysql.com/list.php?107

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.