FULLTEXT index

A FULLTEXT index is a MySQL index built over the words in one or more text columns to support efficient text searches. It is queried using MATCH ... AGAINST and follows tokenization rules, including minimum token length and stopwords that can exclude certain words from indexing.

Minimal example

sql
CREATE FULLTEXT INDEX ft_items_name
ON items(name);
SELECT id FROM items
WHERE MATCH(name) AGAINST ('pizza');

Learn this concept

Lesson 2.23 · MySQL FULLTEXT search

Used in exercises

Exercise 2.24 · GET /v1/restaurants: search by name
Prerequisite conceptsSecondary indexB+tree