Created
November 17, 2013 06:30
-
-
Save ken-muturi/7510103 to your computer and use it in GitHub Desktop.
Boolean Full-Text Searches - http://viralpatel.net/blogs/full-text-search-using-mysql-full-text-search-capabilities/
It may happen that you want to specify certain keywords in your search criteria. Also you may want to ignore certain keywords. Boolean Full-Text Search can used to perform a full text search for such requirements.
If you notice th…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * FROM articles WHERE MATCH (title,body) | |
| AGAINST ('+MySQL -YourSQL' IN BOOLEAN MODE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * FROM `icms3_log` WHERE MATCH (type,msg,severity) AGAINST ('+Error (>High <Medium)' IN BOOLEAN MODE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment