Re: full text search in mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do get results for islands in greece as well. How can I specify in my
statement, that both words have to be present?

From the MySQL manual:
As of Version 4.0.1, MySQL can also perform boolean full-text searches using the IN BOOLEAN MODE modifier.


mysql> SELECT * FROM articles WHERE MATCH (title,body) AGAINST ('+MySQL -YourSQL' IN BOOLEAN MODE);

Use + to indicate required words.

Larry


-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux