Introduction
MySQL has an additional form of full-text search called Boolean full-text search. It can perform boolean full-text searches using the IN BOOLEAN MODE modifier. We use the IN BOOLEAN MODE modifier in the AGAINST expression to perform a full-text search in the Boolean mode.
Example
In this example, we will search for a product whose product name contains the Truck word.
|
Output
Only those products are returned whose product name contains the Truck word.

With IN BOOLEAN MODE modifier, certain characters have special meaning at the beginning or end of words in the search string. For example, the + and - operators indicate that a word must be present or absent, respectively, for a match to occur.
Example
In this example, we search for the products whose product names contain the Truck word but do not have the Pickup word. We will use the exclude Boolean operator (-), which returns the desired result:
|
Output

Relevance Score
The MATCH() function provides relevance score for every row in the table. Rows will be shown in such a way that rows with higher relevance will come first. This value decides how it is relevant to the search item. The relevance score is a non-negative floating-point number.
Example
|
Output
