Databases and storage · Concept

Full-text search

Searching inside text by words rather than exact matches, with results ranked by how well they match, the way a search box should work.

Analytics and search · updated

How it works

A full-text index splits text into words, normalises them (lower case, word stems) and records where each word appears, so a search for 'running shoes' finds 'shoes for runners' quickly and ranks it with a formula such as BM25. A plain LIKE query cannot rank results and gets slow on big tables.

Many databases have it built in: SQLite's FTS5 extension, PostgreSQL's tsvector columns, MongoDB Atlas Search. Dedicated engines such as Elasticsearch, OpenSearch, Meilisearch and Typesense add typo tolerance and filters. Combining it with vector search gives hybrid search.

Full-text search vs the alternatives

More in Databases and storage

Analytics and search

All 25 Databases and storage terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.