It is currently Wed Feb 08, 2012 5:24 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: MySQL Full-Text Searching
PostPosted: Mon Feb 15, 2010 12:26 pm 
Offline

Joined: Mon Feb 15, 2010 11:59 am
Posts: 2
Pre-Requisites:

1. MySQL 3.23.23 or higher (for natural-language full-text searching) or MySQL 4 or higher (for Boolean full-text searching)

2. Requires an index of type FULLTEXT on table [ ALTER TABLE <table_name> ADD FULLTEXT(<column_name>);]

3. Full-text indexes can be used only with MyISAM tables

4. Only applied on columns having following type: CHAR, VARCHAR, or TEXT

5. The index doesn’t contain every word

6. A list of ‘stopwords’ are ignored from being indexed. (Common words in English language) [ Solution: Check ft_stopword_file, can be replaced with an external file ]

7. Index ignores words unless they’re longer than ft_min_word_len and shorter than ft_max_word_len characters

8. A column that uses the latin1 character set of can be assigned a collation of latin1_bin to make it case sensitive for full-text searches. Otherwise, case-insensitive search will be performed




Usage:

SELECT <field1>,<field2>,... FROM <table_name> WHERE <condition> AND MATCH(<field_name>) AGAINST(<value>)

_________________
http://sphinxstudio.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: