Full-text queries

There are three different modes of full-text queries. The default mode, which is the natural language mode, will only search documents containing at least one of the words that you have specified. The Boolean mode allows you to make more complex queries by using different operators to exclude words, to give a higher relevance to certain words, or to search for a specific phrase instead of unlinked words. The last mode, called query expansion search, will first perform a natural language search in order to retrieve the most relevant terms from the resulting rows. Those terms will then be added to the query, which will be executed again.


In the following section, we will use the Sakila Sample Database. Please install it by following ...

Get MariaDB Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.