How to Change MySQL FULLTEXT Index Minimum and Maximum Length of Words FULLTEXTインデックスを変更する方法MySQLの最小値と最大の長さを言葉
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.したがって、経由しようとしたときにフルテキストインデックスを検索すると、短い言葉をインデックスに登録されない、とハンス検索結果を返しません。
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インデックスのインデックスに登録される単語を4つの文字は、単語間のデフォルトの最大長されるのインデックスに登録さ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.単語の数を増やすには、インデックスや検索、特に短い言葉のような3つの文字の言葉を、管理者は、削減の最小または最大の長さを増やすの言葉をインデックスに登録されるとft_max_word_len ft_min_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つの文字の言葉をインデックスに登録するか、または3文字のテキストの行を追加するには、次のft_min_word_len変数の値を低く設定して下に[ mysqld ]セクションに、オプション設定ファイル、すなわちのmy.cnf :
[mysqld] [ mysqldの]
ft_min_word_len=3 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インデックスを再構築しなければならない。 The following command to do a quick repair operating is sufficient to rebuild the indexes:これを行うには、以下のコマンドを素早く修復のインデックスを再構築するには十分な動作:
mysql> REPAIR TABLE tbl_name QUICK; MySQLの> REPAIR TABLE tbl_name QUICKを;
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 ]の項を参照)として再構築を行うには、フルテキストのパラメータが判明して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.再構築ではない場合に完了すると、 5月収率のテーブルのクエリを誤った結果、および改造して、テーブルを設定すると、サーバーからテーブルを参照して破損しており、修理が必要なのです。
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のワークベンチ-視覚データベースd eignツールを無料でダウンロードできます
- Aqua Words Free Word Puzzle Game from Realore Studios at GAOTDアクアの言葉realoreスタジオから無料で単語パズルゲームgaotd
- Windows Vista Starter Edition Supports More Than 1GB Memory (Tested on 2 GB System) Windows Vistaの初心者モードのサポートを超える1GBメモリ( 2 GBのシステムでテストされ)
- Get Free $25 or More Money Refund (No Hack Required) from Credit Card Foreign Currency Conversion Fee Settlement無料で25ドル以上のお金の払い戻し(ハックが必要となります。 )より外国通貨の両替手数料クレジットカード決済
- How to Change the Microsoft Office Excel Protect Sheet Passwordを変更する方法については、 Microsoft Office Excelのパスワード保護シート
- Send Your Name to Moon On Board Lunar Reconnaissance Orbiter (LRO)ムン委員会の名前を送信して月面上の偵察オービター( lro )
- Make WordPress Blog More Secure Using Secret Key WordPressのブログに秘密鍵を使用して他のセキュリティで保護さ
- 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メモリ
- How to Enable, Use and Support 4GB or More Physical RAM Memory in 32-bit Windows Vistaを有効にする方法、使用、または複数の物理RAMをサポート4GBのメモリを32ビットのWindows Vistaに
- Intel Plans to Launch and Mass Production Duo-Core Atom Processor in Julyインテル起動し、大量生産を計画して原子のプロセッサコアデュオ7月

































May 11th, 2008 02:49 2008年5月11日02:49
Yes, thnks, but where is this mysterious config file “my.cnf”?はい、 thnks 、しかし、この神秘的なconfigファイルはどこにあります"のmy.cnf "ですか?
May 11th, 2008 08:21 2008年5月11日08:21
Depends.依存します。 Normally it’s located in /etc通常の位置は/ etc