Adding A Collation For Full-Text Indexing - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

• Add a new collation for the character set used by the indexed columns, and alter the columns to
use that collation. For general information about adding collations, see
Collation to a Character
"Adding a Collation for Full-Text
If you modify full-text variables that affect indexing
ft_max_word_len
must rebuild your
the indexes in this case, it is sufficient to do a
mysql>
REPAIR TABLE tbl_name QUICK;
Alternatively, use
each
FULLTEXT
Each table that contains any
the table may yield incorrect results, and modifications to the table will cause the server to see the table
as corrupt and in need of repair.
Note that if you use
analyze), the
word length, maximum word length, and stopword file unless you specify otherwise. This can result in
queries failing.
The problem occurs because these parameters are known only by the server. They are not stored
in
index files. To avoid the problem if you have modified the minimum or maximum word
MyISAM
length or stopword file values used by the server, specify the same
ft_max_word_len
mysqld. For example, if you have set the minimum word length to 3, you can repair a table with
myisamchk
shell>
myisamchk --recover --ft_min_word_len=3 tbl_name.MYI
To ensure that
one in both the
[mysqld]
ft_min_word_len=3
[myisamchk]
ft_min_word_len=3
An alternative to using
TABLE,
OPTIMIZE
server, which knows the proper full-text parameter values to use.

12.9.7. Adding a Collation for Full-Text Indexing

This section describes how to add a new collation for full-text searches. The sample collation is like
latin1_swedish_ci
so that it can be indexed as a word character. General information about adding collations is given
in
Section 10.4, "Adding a Collation to a Character
familiar with the files involved.
To add a collation for full-text indexing, use this procedure:
1. Add a collation to the
from 62 if that ID is already taken on your system.
<charset name="latin1">
...
<collation name="latin1_fulltext_ci" id="62"/>
Adding a Collation for Full-Text Indexing
Set". For an example specific to full-text indexing, see
[452], or
ft_stopword_file
indexes after making the changes and restarting the server. To rebuild
FULLTEXT
with the
ALTER TABLE
index. In some cases, this may be faster than a repair operation.
FULLTEXT
to perform an operation that modifies table indexes (such as repair or
myisamchk
indexes are rebuilt using the default full-text parameter values for minimum
FULLTEXT
[452], and
ft_stopword_file
like this:
and the server use the same values for full-text parameters, place each
myisamchk
and
[mysqld]
[myisamchk]
myisamchk
TABLE, or
ALTER TABLE
but treats the
Index.xml
Indexing".
(ft_min_word_len
[453]), or if you change the stopword file itself, you
repair operation:
QUICK
and
DROP INDEX
index must be repaired as just shown. Otherwise, queries for
[453]
sections of an option file:
for index modification is to use the
statements. These statements are performed by the
character as a letter rather than as a punctuation character
'-'
Set"; it is assumed that you have read it and are
file. The collation ID must be unused, so choose a value different
946
Section 10.4, "Adding a
[452],
options to drop and re-create
ADD INDEX
ft_min_word_len
values for
myisamchk
REPAIR
TABLE,
Section 12.9.7,
[452],
that you use for
ANALYZE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents