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 데이터베이스 구축했다 - 전체 - 텍스트 검색 기능에 빠르게 MySQL 데이터베이스는 SQL 쿼리 엔진을 사용하여 검색을 수행할 수있습니다. 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 색인에 대한 색인이 생성되고 기본적으로, 단어의 길이에 대한 최소한의 가치를 FULLTEXT 색인에 대한 색인이 생성되고 4 개의 문자입니다. 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_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 - 문자 단어, 또는 3 - 편지 텍스트 FULLTEXT 색인에 대한 색인,
[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 인덱스를 재건해야합니다. 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. 참고 각 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 - 비트 (x64) 윈도우 비스타 SP1 (6001.1800) 수정 프로그램 이벤트 ID 4226 및 잠금 해제를 최대 연결 허용을 늘리십 자동 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 Extras를 유리 또는 진주 소리 변경 구성표
- How to Change the Microsoft Office Excel Protect Sheet Password 시트를 보호하는 방법은 Microsoft Office Excel에서 암호를 변경하려면
- Download Windows Search 4.0 Preview 다운로드는 Windows 검색 4.0 미리보기
- Make Searches with Natural Language on Powerset Search Engine 자연 언어와 파워 검색 엔진에서 검색하게
- 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 메모리

































May 11th, 2008 02:49 5 월 11 일 2008 2시 49분
Yes, thnks, but where is this mysterious config file “my.cnf”? 네, thnks,하지만이게 어디 신비로운 config 파일 "my.cnf"이란 무엇입니까?
May 11th, 2008 08:21 5 월 11 일 2008 8시 21분
Depends. 에 따라 달라집니다. Normally it’s located in /etc 일반적으로 / etc 해당 위치의