How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words Ako zmeniť MySQL fulltextového Obsah Minimálna a maximálna dĺžka slova
MySQL database has built-in full-text search capability that allows SQL queries to perform search quickly using MySQL database engine. MySQL databázu je postavená-in full-textové vyhľadávanie schopnosti SQL dotazov, ktoré umožňuje vykonávať rýchlo vyhľadávať pomocou databázy MySQL motora. The full-text search capability depends on the FULLTEXT index which is been created on various table fields or columns. Na full-textové vyhľadávanie schopností závisí na fulltextového register, ktorý je vytvorený z rôznych polí tabuľky alebo stĺpce. However, some search queries may not return the experted results or datasets, even though the data is verified to exists on full-text search, especially on short keywords or search terms. Avšak niektoré vyhľadávacie dotazy nemusí vrátiť experted výsledkov alebo súbory dát, a to i napriek tomu, že údaje sú overené na existuje na full-textové vyhľadávanie kľúčových slov, najmä na krátke alebo vyhľadávané slová.
The problem probably lies on the default minimum length of words indexed by FULLTEXT index which is set as 4 characters. Problém zrejme spočíva na predvolené minimálna dĺžka slova s indexom fulltextového index, ktorá je nastavená ako 4 znaky. Thus, when attempting to search via full-text index, the short words are not indexed, and hance not return in search results. Preto, keď sa snažia hľadať cez full-text index, krátke slová nie sú indexované, a hance nenavrátím vo výsledkoch vyhľadávania.
By default, the minimum value for length of word to be indexed in FULLTEXT index is four characters, while the default maximum length of words to be indexed in FULLTEXT index is varies depending on version of mySQL server. V predvolenom nastavení je minimálna hodnota pre dĺžku slová, ktoré majú byť indexované fulltextového index sú štyri znaky, pričom východiskové maximálnu dĺžku slová, ktoré majú byť indexované fulltextového index sa pohybuje v závislosti na verzii MySQL servera. To increase the number of words indexed and searchable, especially shorter words such as three-character words, administrator can reduce the minimum or increase the maximum length of words to be indexed by using ft_min_word_len and ft_max_word_len system variables. Ak chcete zvýšiť počet slov indexovanými a vyhľadávať, a to najmä kratšie slová ako troch-znak slová, administrátor môže znížiť alebo zvýšiť minimálna maximálna dĺžka slová, ktoré majú byť indexovaný pomocou ft_min_word_len a ft_max_word_len systémovej premennej.
For example, for FULLTEXT index to index the three-character words, or 3-letter text, add in the following line to set the lower value for ft_min_word_len variable under [mysqld] section to an option file, ie my.cnf: Napríklad pre fulltextového indexu index troch-znak slová, alebo 3-text listu, pridá v nasledujúcom riadku nastaviť nižšiu hodnotu ft_min_word_len premenná [mysqld] bod pre voľbu súboru, tj my.cnf:
[mysqld]
ft_min_word_len=3
Save the file, and then restart the MySQL server. Uložte súbor a reštartujte server MySQL. After changing either value of full-text variable, which both affects indexing, the FULLTEXT indexes must be rebuilt. Po zmene buď hodnotu full-text premennú, ktorá ovplyvňuje tak indexovaniu, je fulltextového indexy musia byť přestavěn. The following command to do a quick repair operating is sufficient to rebuild the indexes: Nasledujúci príkaz, ktorý by rýchlu opravu prevádzkovej je dostatočné k tomu, aby nové indexy:
mysql> REPAIR TABLE tbl_name QUICK; mysql> OZDRAVOVACIE SLUŽBY TABELPOSITION tbl_name QUICK;
Note that each and every table that contains any FULLTEXT index must be repaired with SQL command above. Všimnite si, že každej tabuľke, ktorá obsahuje fulltextového index musí byť opravené s SQL príkazu vyššie. Also do not use myisamchk (unless you have also defined the full-text parameter values in [myisamchk] section) to perform the rebuilt as the full-text parameters are only known to mysqld server. Tiež nepoužívajte myisamchk (ak ste definovali full-textové hodnoty parametrov v [myisamchk] sekcii) vykonávať prestavanými ako full-textové parametre sú len známe, že mysqld server. If rebuild is not done, queries for 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. Ak znovu sa nerobí, otázky pre tabuľky môžu viesť k nesprávnym výsledkom, a zmeny v tabuľke znamená, že sa na server pozri tabuľka ako skorumpovanej a potrebujú opraviť.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. DOLEŽITÉ: You're čítanie stroje preložené stránky, ktoré sú poskytované "tak ako sú" bez záruky. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. Na rozdiel od ľudského preklad strojový preklad nerozumie gramatika, Sémantika, syntax, idiomy prirodzeného jazyka, a tak často nepresné a nízka kvalita textu, čo je zavádzajúce a nezrozumiteľný. Thus, please refer to Tak, pozrite sa do original English article Anglický originál článku when in doubt. Ak ste na pochybách.
Related Articles Súvisiace články
- MySQL Workbench - Visual Database Deign Tool Free Download MySQL Workbench - Visual databázy uráčit Tool Bezplatne k stiahnutiu
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTD Aqua Slov Voľný Word Puzzle hry od Realore Studios v GAOTD
- 64-bit (x64) Windows Vista SP1 (6001.1800) tcpip.sys Auto Patcher to Fix Event ID 4226 and Unlock Increase Maximum Connections Allowed 64-bit (x64) Okná priehľad SP1 (6001.1800) Tcpip.sys Auto Patcher to Fix ID udalosti 4226 a Odomknúť Zvýšenie maximálnej Pripojenie povolená
- How to Change the Display Language (Including Welcome Screen) in Windows Vista Ako zmeniť zobrazovaný jazyk (Vrátane Uvítacia obrazovka) v systéme Windows Vista
- How to Change Icon of Shortcut in Windows Vista Ako zmeniť ikony zo skratiek vo Windows Vista
- How to Activate or Change to Windows Vista Ultimate Extras Glass or Pearl Sound Scheme Ako aktivovať alebo zmeniť na Windows Vista Ultimate Extra Sklo alebo Pearl Zvukový systém
- How to Change the Microsoft Office Excel Protect Sheet Password Ako možno zmeniť Microsoft Office Excel Uzamknúť list Heslo
- Download Windows Search 4.0 Preview Prevziať Windows Hľadať 4,0 Náhľad
- How to Enable PAE in x86 32-bit Windows Server 2003 and 2000 to Use Large 4GB or More RAM Memory Ako povoliť PAE do x86 32-bit Windows Server 2003 a 2000 o použitie veľkej 4GB alebo viac pamäte RAM
- Make Searches with Natural Language on Powerset Search Engine Vykonajte vyhľadávanie s prirodzeného jazyka pre vyhľadávač Powerset










































May 11th, 2008 08:21 11. mája 2008 08:21
Depends. Záleží. Normally it's located in /etc Obvykle je umiestnený v / etc
May 11th, 2008 02:49 11. mája 2008 02:49
Yes, thnks, but where is this mysterious config file “my.cnf”? Áno, thnks, ale Kde je ten záhadný config file "my.cnf"?