Changes between Version 1 and Version 2 of FulltextSearchIdeas


Ignore:
Timestamp:
06/17/05 16:39:44 (19 years ago)
Author:
lauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FulltextSearchIdeas

    v1 v2  
    1 for mysql, we need MYISAM 
     1for mysql, we need MyISAM tables  
     2 
     3e.g. 
     4mysql> CREATE TABLE articles ( 
     5    ->   id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, 
     6    ->   title VARCHAR(200), 
     7    ->   body TEXT, 
     8    ->   FULLTEXT (title,body) 
     9    -> ); 
     10 
     11example query: 
     12mysql> SELECT * FROM articles 
     13    -> WHERE MATCH (title,body) AGAINST ('database'); 
     14 
     15 
     16Hints from MySQL documentation:  
     17 
     18Loading data into a table that has an existing FULLTEXT index  
     19could be significantly slower.  
     20 
     21For large datasets, it is much faster to load your data into  
     22a table that has no FULLTEXT index, then create the index  
     23with ALTER TABLE (or CREATE INDEX)