Section: Search, rank, and highlight

Search with MATCH

sql
sql
SELECT rowid, title FROM docs WHERE docs MATCH 'sqlite';
Explanation

MATCH is the core FTS operator.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Search, rank, and highlight
Run a phrase search
Search for words appearing together in order.
OpenIn sheetsqlsame section
Run a prefix search
Match terms by prefix.
OpenIn sheetsqlsame section
Rank results with bm25()
Sort by relevance score.
OpenIn sheetsqlsame section
Highlight matches or return snippets
Decorate matched terms in search output.
OpenIn sheetsqlsame section
Create an FTS5 virtual table
Store searchable text in an FTS5 index.
OpenIn sheetsql2 tag match
Insert searchable content
Add rows to an FTS5 table.
OpenIn sheetsql2 tag match