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.



2 Responses to “How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words” 2 Responses to "Come cambiare MySQL FULLTEXT indice minimo e la lunghezza massima di Parole"

  1. chichilatte
    May 11th, 2008 02:49 Maggio 11, 2008 02:49
    1

    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"?

  2. admin
    May 11th, 2008 08:21 Maggio 11, 2008 08:21
    2

    Depends. Dipende. Normally it’s located in /etc Normalmente si trova in / etc

Leave a Reply Lascia un Commento

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> È possibile utilizzare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Iscriviti senza commentare


Custom Search

Incoming Search Terms for the Article Cerca in entrata Termini per l'articolo

mysql fulltext index mysql indice completo - -- mysql rebuild fulltext index mysql ricostruire indice completo - -- mysql rebuild index mysql ricostruire indice - -- mysql minimum word length mysql minima lunghezza di parola - -- rebuild fulltext index mysql Indice completo ricostruire mysql - -- mysql update fulltext index mysql aggiornamento completo indice - -- fulltext index mysql Indice completo mysql - -- mysql minimum length mysql lunghezza minima - -- mysql index rebuild mysql indice ricostruire - -- mysql fulltext index length mysql lunghezza indice completo - -- rebuild fulltext mysql ricostruire il fulltext mysql - -- mysql text index length mysql testo indice lunghezza - -- mysql rebuild fulltext mysql ricostruire il fulltext - -- mysql rebuild full text index mysql ricostruire indice di testo completo - -- rebuild index MYSQL Indice di ricostruire MYSQL - -- mysql fulltext mysql completo - -- minimum word length fulltext minima lunghezza di parola completo - -- mysql rebuild FULLTEXT indexes mysql ricostruire indici FULLTEXT - -- mysql change index length mysql cambiare indice lunghezza - -- mysql fulltext length mysql completo lunghezza - -- length mysql lunghezza mysql - -- mysql fulltext ft_min_word_len mysql completo ft_min_word_len - -- fulltext min chars fulltext min caratteri - -- fulltext search minimum length Fulltext search lunghezza minima - -- mysql change search minimum length mysql cambiare lunghezza minima di ricerca - -- minimum and maximum word length full-text parameters minimo e massimo della lunghezza di parola full-text parametri - -- mysql fulltext minimum word length mysql completo minima lunghezza di parola - -- fulltext mysql completo mysql - -- how to rebuild FULLTEXT index MySQL come ricostruire indice FULLTEXT MySQL - -- rebuild fulltext indexes mysql ricostruire il fulltext indici mysql - -- mysql minimum search 3 chars help mysql minimo di ricerca 3 caratteri aiutare - -- mysql full text search 3 chars mysql ricerca a testo integrale 3 caratteri - -- full text index mysql 3 letter words testo completo indice mysql 3 lettera parole - -- update fulltext index mysql Indice completo aggiornamento mysql - -- mysql 3 letter fulltext mysql 3 lettera completo - -- mysql full text search minimum length 3 mysql ricerca a testo integrale lunghezza minima 3 - -- wm6 mysql wm6 mysql - -- mysql maximum indexes mysql massimo indici - -- mySQL full text search 3 letter words mySQL ricerca a testo integrale 3 lettera parole - -- how to change minimum word length for full text search in mysql come minimo cambiamento della lunghezza di parola per la ricerca a testo integrale in MySQL - -- set mysql full text search minimum word length impostare mysql ricerca a testo integrale minima lunghezza di parola - -- mysql full text search min length mysql ricerca a testo integrale min lunghezza - -- change mysql fulltext length mysql completo cambiamento di lunghezza - -- mysql full text keyword length mysql testo integrale delle parole chiave lunghezza - -- all tutto - -- mysql word length mysql lunghezza di parola - -- mysql index short words mysql indice breve parole - -- change mysql fulltext keyword length mysql completo cambiamento di lunghezza delle parole chiave - -- ft_min_word_len change ft_min_word_len cambiamento - -- rebuilding indexes in mysql ricostruzione indici in MySQL - --