MySQL
  Home arrow MySQL arrow Using Boolean Operators for Full Text and Boolean Searches with MySQL
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

Using Boolean Operators for Full Text and Boolean Searches with MySQL
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 8
    2007-06-20


    Table of Contents:
  • Using Boolean Operators for Full Text and Boolean Searches with MySQL
  • Reintroducing some earlier concepts
  • Using the plus operator
  • Using the minus operator

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Using Boolean Operators for Full Text and Boolean Searches with MySQL
    ( Page 1 of 4 )

    Implementing full text searches with MySQL can improve the execution of queries against specific database tables. If you want to put this useful feature to work for you, start reading this article now! Welcome to the final tutorial of the series that began with "Performing Full Text and Boolean Searches with MySQL." Made up of three tutorials, this series walks you through the basics of creating full text indexes in MySQL tables, and shows you how to take advantage of Boolean searches to improve the performance of your SQL queries.

    Introduction

    As you'll probably remember, in the previous article of the series I discussed in detail some crucial topics surrounding the implementation of full text searches using MySQL. Specifically, I covered the use of the MATCH and AGAINST statements, which when used in conjunction allow us to retrieve easily not only database results, but also different relevance rankings, depending on the terms included into a given search string.

    Of course, I accompanied the discussion with numerous code samples, which hopefully helped you to grasp more easily how MySQL-based full text searches can be implemented in real-world situations. Certainly, analyzing the subject from a completely practical point of view implies that many web developers can have at their disposal a decent variety of hands-on examples to help them start rapidly incorporating these useful features into their MySQL-driven applications.

    Nonetheless, I have to admit that full text searches and MySQL is a huge topic, which possibly deserves many more articles than the ones I wrote for the excellent Developer Shed network. But this doesn't prevent me from making my humble contribution to the subject. So in this last installment of the series I'm going to dive a bit deeper into the area of using full text searches with MySQL by showing you how to use the popular Boolean operators to add (and discard) specific terms from a given search string.

    Are you ready to learn how to incorporate Boolean search capabilities to your web applications? Let's begin now!



     
     
    >>> More MySQL Articles          >>> More By Alejandro Gervasio
     

       

    MYSQL ARTICLES

    - Null and Empty Strings
    - MySQL Server Tuning Tips and Tricks
    - MySQL Query Optimizations and Schema Design
    - MySQL Benchmarking Tools and Utilities
    - MySQL Benchmarking Concepts and Strategies
    - Take Some Load off MySQL with MemCached
    - MySQL Table Prefix Changer Tool in PHP
    - Using the SIGNAL Statement for Error Handling
    - Error Handling Examples
    - Error Handling
    - Completing a Search Engine with MySQL and PH...
    - Paginating Result Sets for a Search Engine B...
    - Building a Search Engine with MySQL and PHP 5
    - Using Boolean Operators for Full Text and Bo...
    - PHP, MySQL and the PEAR Database





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT