How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words כיצד לשנות MySQL אינדקס FULLTEXT אורך מינימום ומקסימום של מילים
MySQL database has built-in full-text search capability that allows SQL queries to perform search quickly using MySQL database engine. הנתונים MySQL יש מובנה חיפוש טקסט מלא יכולת שאילתות SQL המאפשר לבצע חיפוש מהיר בעזרת מנוע מסד נתונים MySQL. The full-text search capability depends on the FULLTEXT index which is been created on various table fields or columns. טקסט מלא של יכולת חיפוש תלוי FULLTEXT באינדקס שהוא נוצר על שולחן תחומים שונים או עמודות. 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. עם זאת, כמה שאילתות חיפוש אינם מחזירים את התוצאות experted או נתונים, למרות הנתונים אימות כדי קיים על חיפוש טקסט מלא, בעיקר על קצר מונחי חיפוש או מילות מפתח.
The problem probably lies on the default minimum length of words indexed by FULLTEXT index which is set as 4 characters. הבעיה נעוצה כנראה על ברירת המחדל של אורך מינימום מילים באינדקס לפי מדד FULLTEXT שהוא מוגדר כ 4 תווים. Thus, when attempting to search via full-text index, the short words are not indexed, and hance not return in search results. לכן, כאשר מנסים לבצע חיפוש באמצעות אינדקס טקסט מלא, קצר את המילים אינן באינדקס, וכן לא hance חזרה בתוצאות החיפוש.
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. כברירת מחדל, הערך המינימלי של אורך המילה יהיה לרשום באינדקס FULLTEXT האינדקס הוא ארבעה תווים, בעוד ברירת המחדל האורך המרבי של מילים להיות לרשום באינדקס FULLTEXT האינדקס הוא משתנה בהתאם לגירסת השרת 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. כדי להגדיל את מספר המילים ואת באינדקס החיפוש, במיוחד במילים קצרות יותר, כגון שלוש מילים התווים, מנהל יכול לצמצם למינימום או להגדיל את האורך המרבי של מילים להיות באינדקס באמצעות ft_min_word_len ו ft_max_word_len המערכת משתנים.
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: לדוגמה, עבור FULLTEXT מדד האינדקס של עד שלושה תווים מילים, או 3 אותיות טקסט, להוסיף את השורה הבאה כדי לקבוע את ערך נמוך יותר עבור ft_min_word_len משתנה תחת [mysqld] כדי אופציה הקובץ, כלומר my.cnf:
[mysqld]
ft_min_word_len=3
Save the file, and then restart the MySQL server. שמור את הקובץ ולאחר מכן הפעל מחדש את שרת MySQL. After changing either value of full-text variable, which both affects indexing, the FULLTEXT indexes must be rebuilt. לאחר שינוי ערך או טקסט מלא של משתנה, אשר משפיעה על שניהם לאינדקס, את חייבת להיות FULLTEXT אינדקסים rebuilt. The following command to do a quick repair operating is sufficient to rebuild the indexes: את הפקודה הבאה כדי לבצע הפעלה מהירה לתקן מספיק כדי לבנות מחדש את לאינדקס:
mysql> REPAIR TABLE tbl_name QUICK; MySQL> TABLE tbl_name תיקון מהיר;
Note that each and every table that contains any FULLTEXT index must be repaired with SQL command above. שים לב כי כל טבלה שמכילה כל FULLTEXT באינדקס חייב להיות עם SQL לתיקון פקודת לעיל. 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. כמו כן אין להשתמש myisamchk (אלא אם כן יש לך גם הגדיר את טקסט מלא פרמטר ערכים [myisamchk] סעיף) על מנת לבצע את rebuilt בתור טקסט מלא הפרמטרים הם רק מוכרים 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. לבנות מחדש אם הוא לא עשה, עבור שאילתות השולחן עשויה להניב תוצאות לא נכונים, וכן שינויים לשולחן יגרום השרת כדי לראות את הטבלה כפי מושחתים ו זקוק לתיקון.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. חשוב: אתה קריאת מכונה לתרגם דף בתנאי שהיא "כמו שהוא", ללא אחריות. 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. שלא כמו האדם תרגום, תרגום מכונה אינו מבין את הדקדוק, סמנטיקה, תחביר, idioms של שפה טבעית, ולכן לעיתים קרובות לא מדויקים ו לייצר באיכות נמוכה טקסט שהוא מטעה ו מובנת. Thus, please refer to לכן, אנא פנה אל original English article המאמר המקורי באנגלית when in doubt. במקרה של ספק.
Related Articles מאמרים קשורים
- MySQL Workbench - Visual Database Deign Tool Free Download MySQL Workbench - מסד נתונים של Visual להואיל בחסדו כלי הורדה חינם
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTD אקווה דברים חינם מ-Word משחק פאזל Realore אולפנים ב 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 סיביות (x64) של Windows Vista SP1 (6001.1800) tcpip.sys אוטומטי פאצ לתקן מזהה אירוע 4226 או ביטול נעילת הגדל מקסימום חיבורים מותרים
- How to Change the Display Language (Including Welcome Screen) in Windows Vista כיצד לשנות את שפת התצוגה (כולל מסך הפתיחה) ב-Windows Vista
- How to Change Icon of Shortcut in Windows Vista כיצד לשנות איקון של קיצור דרך ב-Windows Vista
- How to Activate or Change to Windows Vista Ultimate Extras Glass or Pearl Sound Scheme כיצד להפעיל או שנה ל-Windows Vista Ultimate Extras זכוכית או פרל סאונד לזוד
- How to Change the Microsoft Office Excel Protect Sheet Password כיצד לשנות את Microsoft Office Excel הגנת גיליון סיסמה
- Download Windows Search 4.0 Preview הורד את Windows Search 4.0 תצוגה מקדימה
- How to Enable PAE in x86 32-bit Windows Server 2003 and 2000 to Use Large 4GB or More RAM Memory כיצד להפעיל את התכונה PAE ב-x86 של 32 סיביות של Windows Server 2003 ו 2000 ל השתמש גדולה 4GB זיכרון RAM או יותר
- Make Searches with Natural Language on Powerset Search Engine בצע חיפושים עם שפות טבעיות ב Powerset מנוע חיפוש










































May 11th, 2008 08:21 11 מאי 2008 08:21
Depends. תלוי. Normally it's located in /etc בדרך כלל זה הנמצא ב / etc
May 11th, 2008 02:49 11 מאי 2008 02:49
Yes, thnks, but where is this mysterious config file “my.cnf”? כן, thnks, אבל איפה זה מסתורי קובץ תצורה "my.cnf"?