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.



2 Responses to “How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words” 2 Atbildes uz "Kā Maina MySQL Fulltext Saturs Minimālais un maksimālais garums Words"

  1. admin admin
    May 11th, 2008 08:21 Maijs 11, 2008 08:21
    2 2

    Depends. Atkarīgs. Normally it's located in /etc Parasti tas atrodas / etc

  2. chichilatte chichilatte
    May 11th, 2008 02:49 Maijs 11, 2008 02:49
    1 1

    Yes, thnks, but where is this mysterious config file “my.cnf”? Jā, thnks, bet, ja tas ir noslēpumainas config file "my.cnf"?

Leave a Reply Atstāj atbildi

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> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Lai saņemtu paziņojumu par jaunāko komentāri norīkots darbā, abonēt Tip and Trick Comments RSS feed Padoms un triks Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

Incoming Search Terms for the Article Incoming Meklēt Noteikumi par pants

mysql rebuild fulltext index mysql atjaunot Fulltext indekss - -- mysql fulltext index mysql Fulltext indekss - -- rebuild fulltext index mysql atjaunot Fulltext indekss mysql - -- mysql rebuild index mysql atjaunot indekss - -- mysql minimum word length mysql minimālais vārda garums - -- mysql update fulltext index mysql update Fulltext indekss - -- mysql rebuild FULLTEXT indexes mysql atjaunot Fulltext indeksi - -- mysql rebuild fulltext mysql atjaunot Fulltext - -- rebuild fulltext indexes MySQL atjaunot Fulltext indeksi MySQL - -- fulltext index mysql Fulltext indekss mysql - -- mysql minimum length mysql minimālais garums - -- mysql index rebuild mysql indekss atjaunot - -- mysql rebuild full text index mysql atjaunotu pilnu tekstu indekss - -- mysql fulltext index length mysql Fulltext indekss garums - -- rebuild index MYSQL atjaunot indekss MySQL - -- rebuild fulltext mysql atjaunot Fulltext mysql - -- mysql text index length mysql teksts indekss garums - -- rebuild mysql fulltext index atjaunot mysql Fulltext indekss - -- search meklēt - -- mysql fulltext mysql Fulltext - -- minimum word length fulltext minimālais vārda garums Fulltext - -- mysql fulltext minimum characters mysql Fulltext minimālais rakstzīmes - -- wm6 mysql wm6 mysql - -- mysql change index length mysql mainīt indekss garums - -- mysql fulltext length mysql Fulltext garums - -- length mysql garums mysql - -- mysql fulltext ft_min_word_len mysql Fulltext ft_min_word_len - -- change mysql fulltext length mainīt mysql Fulltext garums - -- mysql full text keyword length mysql pilnu tekstu atslēgvārdu garums - -- all viss - -- fulltext min chars Fulltext min chars - -- ft_min_word_len change ft_min_word_len maiņa - -- fulltext search minimum length Fulltext search minimālais garums - -- mysql change search minimum length mysql mainīt meklēšanas minimālais garums - -- minimum and maximum word length full-text parameters minimālais un maksimālais vārda garums pilna teksta parametri - -- mysql fulltext minimum word length mysql Fulltext minimālais vārda garums - -- fulltext mysql Fulltext mysql - -- how to rebuild FULLTEXT index MySQL to, kā atjaunot Fulltext indekss MySQL - -- fulltext length Fulltext garums - -- mysql minimum search 3 chars help mysql minimālais meklēt 3 chars palīdzēt - -- mysql full text search 3 chars mysql pilnu teksta meklēšanu 3 chars - -- full text index mysql 3 letter words pilnu tekstu indekss mysql 3 burtu vārdus - -- update fulltext index mysql update Fulltext indekss mysql - -- mysql 3 letter fulltext mysql 3 vēstuli Fulltext - -- mysql full text search minimum length 3 mysql pilnu teksta meklēšanu minimālais garums 3 - -- mysql maximum indexes mysql maksimālais indeksi - -- mySQL full text search 3 letter words MySQL pilnu teksta meklēšanu 3 burtu vārdus - -- how to change minimum word length for full text search in mysql Kā nomainīt minimālais vārda garums pilna teksta meklēšanu mysql - -- set mysql full text search minimum word length noteikt mysql pilnu teksta meklēšanu minimālais vārda garums - -- mysql full text search min length mysql pilnu teksta meklēšanu min garums - --