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. समस्या शायद डिफ़ॉल्ट पर शब्द जो 4 अक्षर के रूप में सेट कर दिया जाता है FULLTEXT सूचकांक द्वारा अनुक्रमित की न्यूनतम लम्बाई है. 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. जब शब्दों की डिफ़ॉल्ट अधिकतम लंबाई है MySQL सर्वर के संस्करण पर निर्भर करता है FULLTEXT सूचकांक में अनुक्रमित करने By default, शब्द की लंबाई के लिए न्यूनतम मूल्य FULLTEXT सूचकांक में सूचीबद्ध होने की चार अक्षर, है. 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: उदाहरण के लिए, निम्न पंक्ति में [mysqld] अनुभाग एक विकल्प फ़ाइल के लिए, अर्थात् my.cnf: अंतर्गत ft_min_word_len चर के लिए कम मूल्य निर्धारित करने के लिए जोड़ने के तीन चरित्र शब्द, या 3-पत्र पाठ FULLTEXT सूचकांक के लिए सूचकांक, के लिए
[mysqld]
ft_min_word_len=3
Save the file, and then restart the MySQL server. , और फिर MySQL सर्वर restart फ़ाइल सहेजें. After changing either value of full-text variable, which both affects indexing, the FULLTEXT indexes must be rebuilt. दोनों को प्रभावित करता है जो कि अनुक्रमण पूर्ण पाठ चर, की भी कीमत बदल के बाद, FULLTEXT indexes पुनर्निर्माण किया जाना चाहिए. The following command to do a quick repair operating is sufficient to rebuild the indexes: निम्न कमांड एक त्वरित मरम्मत का संचालन करने के लिए पर्याप्त है indexes पुनर्निर्माण करने के लिए:
mysql> REPAIR TABLE tbl_name QUICK; MySQL> मरम्मत टेबल tbl_name त्वरित;
Note that each and every table that contains any FULLTEXT index must be repaired with SQL command above. ध्यान दें कि प्रत्येक और कहा कि इसके बाद के संस्करण की SQL आदेश के साथ ठीक किया जाना चाहिए किसी भी FULLTEXT सूचकांक में शामिल हर तालिका. 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] अनुभाग) प्रदर्शन करने के रूप में पुनर्निर्माण के पूर्ण पाठ मापदंडों केवल mysqld सर्वर से जाना जाता है. 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. मानव अनुवाद के विपरीत, मशीन अनुवाद, जिससे अक्सर गलत और निम्न गुणवत्ता पाठ जो गुमराह कर रहे हैं और समझ से बाहर उपज का व्याकरण, अर्थ विज्ञान, वाक्यविन्यास, प्राकृतिक भाषा के मुहावरे को समझ नहीं है. Thus, please refer to इस प्रकार, कृपया देखें original English article मूल अंग्रेजी लेख when in doubt. जब संदेह में है.
Related Articles संबंधित लेख
- MySQL Workbench - Visual Database Deign Tool Free Download MySQL कार्यक्षेत्र - दृश्य डाटाबेस अनुग्रह करना उपकरण मुफ्त डाउनलोड
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTD एक्वा शब्द मुक्त वर्ड पहेली खेल 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-bit (x64) Windows Vista SP1 (6001.1800) फिक्स Event ID 4226 और अनलॉक करने के लिए अधिकतम Connections अनुमति बढ़ाएँ ऑटो Patcher tcpip.sys
- 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 अतिरिक्त ग्लास या पर्ल ध्वनि योजना के लिए बदलें
- How to Change the Microsoft Office Excel Protect Sheet Password कैसे Microsoft Office Excel रक्षा शीट पासवर्ड परिवर्तित करने के लिए
- Download Windows Search 4.0 Preview डाउनलोड विंडोज खोज 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 या अधिक रैम मेमोरी
- 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 आम तौर पर यह / आदि में स्थित है
May 11th, 2008 02:49 मई, 11 वीं 2008 02:49
Yes, thnks, but where is this mysterious config file “my.cnf”? हाँ, thnks, लेकिन जहां इस रहस्यमय config फाइल "my.cnf" क्या है?