How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words Kā nomainīt MySQL Fulltext Saturs Minimālais un maksimālais garums Words
MySQL database has built-in full-text search capability that allows SQL queries to perform search quickly using MySQL database engine. MySQL datu bāze ir iebūvēts pilna teksta meklēšanas iespējas, kas ļauj SQL queries veikt meklēt ātri, izmantojot MySQL datu bāzes dzinēju. The full-text search capability depends on the FULLTEXT index which is been created on various table fields or columns. Pilna teksta meklēšana spēja ir atkarīga no Fulltext indeksu, kas ir izveidots uz dažādiem galda jomās vai kolonnas. 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. Tomēr dažas meklēšanas vaicājumiem, nevar atgriezt experted rezultāti vai datu, pat neskatoties uz to, ka dati ir pārbaudīta pastāv pilna teksta meklēšanu, jo īpaši saistībā ar īstermiņa atslēgvārdus vai meklēšanas nosacījumiem.
The problem probably lies on the default minimum length of words indexed by FULLTEXT index which is set as 4 characters. Šī problēma, iespējams, ir par noklusēto minimālais garums vārdi indeksētas ar Fulltext indeksu, kas ir noteikta kā 4 rakstzīmes. Thus, when attempting to search via full-text index, the short words are not indexed, and hance not return in search results. Tādējādi, kad mēģinājumi meklēt, izmantojot pilna teksta indeksam, īstermiņa vārdi nav indeksētas, un hance atgriezties meklēšanas rezultātos.
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. Pēc noklusējuma, minimālā vērtība garums vārdu jāindeksē, Fulltext indekss ir četras rakstzīmes, bet pēc noklusējuma maksimālo garumu vārdi jāindeksē, Fulltext indekss ir atkarīgs no versijas MySQL serveri. 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. Lai palielinātu skaitu vārdi indeksēti un meklēšanas iespējām, jo īpaši īsāks vārdiem, piemēram, trīs rakstzīmes vārdiem, administrators var samazināt minimālo vai palielināt maksimālo garumu vārdi jāindeksē, izmantojot ft_min_word_len un ft_max_word_len sistēmas mainīgajiem.
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: Piemēram, Fulltext indekss indeksēt trīs rakstzīmes vārdiem, vai 3-burtu tekstu, pievienot šādu līniju, lai uzstādītu zemāku vērtību ft_min_word_len mainīgo [mysqld] iedaļas iespēju failu, ti my.cnf:
[mysqld]
ft_min_word_len=3
Save the file, and then restart the MySQL server. Saglabājiet failu un pēc tam restartējiet MySQL serveri. After changing either value of full-text variable, which both affects indexing, the FULLTEXT indexes must be rebuilt. Pēc tam, kad mainās vai nu vērtību pilna teksta atšķirīgi, kas gan skar indeksācija, no Fulltext indeksi jābūt pārbūvēta. The following command to do a quick repair operating is sufficient to rebuild the indexes: Turpmāk komanda, lai veiktu ātru remonta darbības ir pietiekami, lai atjaunotu indeksi:
mysql> REPAIR TABLE tbl_name QUICK; mysql> REPAIR TABLE tbl_name ĀTRĀ;
Note that each and every table that contains any FULLTEXT index must be repaired with SQL command above. Ievērojiet, ka katru tabulu, kas satur jebkuru Fulltext indekss ir salabots ar SQL komandu iepriekš. 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. Tāpat neizmanto myisamchk (ja vien jums ir arī definējusi pilna teksta parametru vērtībām [myisamchk] apakšpunktu) pildīt pārbūvēta kā pilna teksta parametri ir tikai zināms, ka mysqld serveri. 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. Ja atjaunot nav darīts, vaicājuma tabulas var iegūt kļūdainus rezultātus, un grozījumus tabulā izraisīs serverim skatīt tabulu kā korumpētiem un tai ir nepieciešama remonts.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. SVARĪGI: You're lasījums mašīna tulkoto lapu kas tiek sniegta "kā ir" bez garantijas. 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. Atšķirībā no cilvēka translation, mašīntulkošanas nesaprot tiesvedības gramatika, semantiku, sintaksi, Idioms dabas valodā, tādējādi bieži vien uzrādīt neprecīzus un zemas kvalitātes tekstu, kas ir maldinoša un neizprotams. Thus, please refer to Tātad, lūdzu, atsaukties uz original English article oriģināls angļu rakstu when in doubt. kad apšaubīta.
Related Articles Saistītie raksti
- MySQL Workbench - Visual Database Deign Tool Free Download MySQL Workbench - Vizuālie Database labpatikt Tool Free Download
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTD Aqua Words Free Word Puzzle Game no Realore Studios pie 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-bitu (x64) Windows Vista SP1 (6001.1800) tcpip.sys Auto Patcher uz Fix Event ID 4226 un Unlock Palielināt Maksimālā Connections Atļautā
- How to Change the Display Language (Including Welcome Screen) in Windows Vista Kā nomainīt Displeja valoda (Ieskaitot Welcome Screen) Windows Vista
- How to Change Icon of Shortcut in Windows Vista Kā nomainīt ikonas Ātrais Windows Vista
- How to Activate or Change to Windows Vista Ultimate Extras Glass or Pearl Sound Scheme Kā aktivizēt vai Mainīt uz Windows Vista Ultimate Extras stikla vai Pearl Sound Scheme
- How to Change the Microsoft Office Excel Protect Sheet Password Kā nomainīt Microsoft Office Excel Protect Sheet Parole
- Download Windows Search 4.0 Preview Download Windows Meklēt 4,0 Preview
- How to Enable PAE in x86 32-bit Windows Server 2003 and 2000 to Use Large 4GB or More RAM Memory Kā Enable PAE ir x86 32-bit Windows Server 2003 un 2000, kas izmanto lielus 4GB vai vairāk RAM Atmiņa
- Make Searches with Natural Language on Powerset Search Engine Marka Meklējumi ar Natural Language par Powerset meklētājprogramma










































May 11th, 2008 08:21 Maijs 11, 2008 08:21
Depends. Atkarīgs. Normally it's located in /etc Parasti tas atrodas / etc
May 11th, 2008 02:49 Maijs 11, 2008 02:49
Yes, thnks, but where is this mysterious config file “my.cnf”? Jā, thnks, bet, ja tas ir noslēpumainas config file "my.cnf"?