diff options
author | serg@serg.mysql.com <> | 2000-12-05 13:38:36 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2000-12-05 13:38:36 +0100 |
commit | 58c3aad795f2d8cbc70e5eb8a0502dcb5de73ebe (patch) | |
tree | cd1a80cd3e6356139869640a19135fd19804594f /Docs | |
parent | 12766e87cf27957ccc29fe7f6875aaffa3b9459e (diff) | |
parent | c863f86e54f93d347d0dd2a2cc7a5fa6bd9a7b35 (diff) | |
download | mariadb-git-58c3aad795f2d8cbc70e5eb8a0502dcb5de73ebe.tar.gz |
Merge
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/manual.texi | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/Docs/manual.texi b/Docs/manual.texi index 6d06a7cf97b..cf21ce894b5 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -37515,6 +37515,7 @@ DELAYED} threads. @cindex searching, full-text @cindex full-text search +@cindex FULLTEXT @node MySQL full-text search, , MySQL threads, MySQL internals @section MySQL Full-text Search @@ -37604,6 +37605,52 @@ know this happen too often when we are trying to find something in Internet with search engine), and, as such, has low semantical value in @strong{this particular dataset}. +@menu +* Fine-tuning:: +@end menu + +@node Fine-tuning, , , MySQL full-text search + +Unfortunately, full-text search has no user-tunable parameters yet +(but adding some is very high in our TODO). But if one has @strong{MySQL} +source distribution (@xref{Installing source}.) he can somewhat alter +full-text search default behaviour. + +But note, that full-text search was carefully tuned up for the best +search effectivity. Modifying default behaviour will, most probably, +make search results only worse. Do not play with @strong{MySQL} sources, +unless you know what you are doing! + +@itemize + +@item +Minimal length of word to be indexed is defined in +@code{myisam/ftdefs.h} file by the line +@example +#define MIN_WORD_LEN 4 +@end example +Change it to the value, you prefer, recompile @strong{MySQL} and rebuild +your @code{FULLTEXT} indexes. + +@item +Stopword list is defined in @code{myisam/ft_static.c} +Modify it to your taste, recompile @strong{MySQL} and rebuild +your @code{FULLTEXT} indexes. + +@item +50% treshold is caused by weighting scheme chosen. To disable it, change +@example +#define GWS_IN_USE GWS_PROB +@end example +line in @code{myisam/ftdefs.h} to +@example +#define GWS_IN_USE GWS_IDF +@end example +and recompile @strong{MySQL}. +There is no need to rebuild the indexes though. + +@end itemize + @page @cindex environment variables, list of @node Environment variables, Users, MySQL internals, Top @@ -38892,10 +38939,10 @@ Dynamic character support. Responsible for @strong{MySQL} configure. @end itemize -@item Sergei A. Golubchik +@item Sergei Golubchik @itemize @bullet @item -Text search +Full-text search @item Added keys to the @code{MERGE} library. @end itemize |