How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words Come cambiare l'indice completo di MySQL minima e massima lunghezza delle parole
MySQL database has built-in full-text search capability that allows SQL queries to perform search quickly using MySQL database engine. Database MySQL ha built-in full-text capacità di ricerca che consente di query SQL per effettuare la ricerca utilizzando in modo rapido motore di database MySQL. The full-text search capability depends on the FULLTEXT index which is been created on various table fields or columns. La ricerca full-text capacità dipende dal FULLTEXT indice che è stato creato su vari campi di tabella o colonne. 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. Tuttavia, alcune ricerche non possono restituire il experted risultati o di dati, anche se i dati sono verificati a esiste sulla ricerca full-text, soprattutto a breve parole chiave o termini di ricerca.
The problem probably lies on the default minimum length of words indexed by FULLTEXT index which is set as 4 characters. Il problema probabilmente è situato su di default lunghezza minima delle parole indicizzate da FULLTEXT indice che è impostato come 4 caratteri. Thus, when attempting to search via full-text index, the short words are not indexed, and hance not return in search results. Così, quando il tentativo di ricerca tramite testo completo indice, il breve parole non sono indicizzate, e Hance non ritorno nei risultati di ricerca.
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. Per impostazione predefinita, il valore minimo per la lunghezza della parola che deve essere indicizzato nel FULLTEXT indice è di quattro caratteri, mentre la lunghezza massima predefinita di parole per essere indicizzati in FULLTEXT indice è varia in base alla versione del server MySQL. 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. Per aumentare il numero di parole indicizzate e la ricerca, soprattutto brevi parole come tre caratteri parole, l'amministratore può ridurre al minimo o aumentare la lunghezza massima di parole per essere indicizzati utilizzando ft_min_word_len e ft_max_word_len variabili di sistema.
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: Ad esempio, per FULLTEXT indice di indicizzare il carattere di tre parole, o 3 lettere del testo, aggiungere la seguente riga per impostare il valore più basso per ft_min_word_len variabile sotto [mysqld] sezione di un file di opzioni, vale a dire my.cnf:
[mysqld]
ft_min_word_len=3
Save the file, and then restart the MySQL server. Salvare il file, quindi riavviare il server MySQL. After changing either value of full-text variable, which both affects indexing, the FULLTEXT indexes must be rebuilt. Dopo aver cambiato il valore di una full-text variabile, che colpisce sia l'indicizzazione, la indici FULLTEXT deve essere ricostruito. The following command to do a quick repair operating is sufficient to rebuild the indexes: Il seguente comando per fare una rapida riparazione operativo è sufficiente per ricostruire gli indici:
mysql> REPAIR TABLE tbl_name QUICK; mysql> SPAZIO PER TABELLA tbl_name RIPARAZIONE RAPIDA;
Note that each and every table that contains any FULLTEXT index must be repaired with SQL command above. Si noti che ogni tabella che contiene qualsiasi indice FULLTEXT deve essere riparato con il comando SQL di cui sopra. 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. Inoltre, non utilizzare myisamchk (a meno che non si hanno anche definito il testo completo valori dei parametri in [myisamchk] sezione) per eseguire il ricostruita come il full-text parametri sono conosciuti soltanto alla 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. Se la ricostruzione non è fatto, le query per la tabella può produrre risultati errati, e le modifiche alla tabella farà in modo che i server per vedere la tabella come corrotto e che necessitano di riparazione.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. IMPORTANTE: Stai lettura una macchina tradotto pagina che è fornito "così come sono" senza garanzia. 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. A differenza di traduzione umana, traduzione automatica non comprendere la grammatica, semantica, sintassi, idiomi del linguaggio naturale, così spesso produrre imprecise e bassa qualità del testo che è fuorviante e incomprensibile. Thus, please refer to Pertanto, si prega di fare riferimento a original English article articolo originale in inglese when in doubt. in caso di dubbio.
Related Articles Articoli correlati
- MySQL Workbench - Visual Database Deign Tool Free Download MySQL Workbench - Database di Visual degnare strumento download gratuito
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTD Aqua parole libera parola gioco di puzzle da Realore Studios a GAOTD
- Windows Vista Starter Edition Supports More Than 1GB Memory (Tested on 2 GB System) Windows Vista Starter Edition supporta più di 1GB di memoria (testato su 2 GB System)
- Get Free $25 or More Money Refund (No Hack Required) from Credit Card Foreign Currency Conversion Fee Settlement Scarica gratuitamente $ 25 o più soldi di rimborso (non richiesto hack) da carta di credito in valuta estera tassa di trasformazione soluzione
- How to Change the Microsoft Office Excel Protect Sheet Password Come cambiare la Microsoft Office Excel foglio di proteggere la password
- Send Your Name to Moon On Board Lunar Reconnaissance Orbiter (LRO) Invia il tuo nome alla luna a bordo Lunar Reconnaissance Orbiter (LRO)
- Make WordPress Blog More Secure Using Secret Key WordPress blog rendere più sicuro utilizzando chiave segreta
- How to Enable PAE in x86 32-bit Windows Server 2003 and 2000 to Use Large 4GB or More RAM Memory Come attivare nel PAE x86 a 32-bit di Windows Server 2003 e il 2000 per l'utilizzo di grandi o più 4GB di memoria RAM
- How to Enable, Use and Support 4GB or More Physical RAM Memory in 32-bit Windows Vista Come attivare, utilizzo e supporto tecnico di 4GB o più di memoria RAM fisica a 32-bit di Windows Vista
- Intel Plans to Launch and Mass Production Duo-Core Atom Processor in July Intel prevede di lanciare la produzione di massa e duo-core del processore Atom nel mese di luglio

































May 11th, 2008 02:49 Maggio 11, 2008 02:49
Yes, thnks, but where is this mysterious config file “my.cnf”? Sì, Suonerie thnks, ma dove è il mistero di questo file di configurazione "my.cnf"?
May 11th, 2008 08:21 Maggio 11, 2008 08:21
Depends. Dipende. Normally it’s located in /etc Normalmente si trova in / etc