Advertisement
Beginner SQL Server, Full Text Search

What is full text search in SQL Server, and how is it different from a regular LIKE search?

Short answer

Full text search is a specialized indexing feature designed for efficiently searching large amounts of text, letting you find whole words or phrases quickly even in very large tables, while a regular LIKE search with wildcards has to scan through the text character by character…

Save SQL Server mock interview
Advertisement
AModel answer
Full text search is a specialized indexing feature designed for efficiently searching large amounts of text, letting you find whole words or phrases quickly even in very large tables, while a regular LIKE search with wildcards has to scan through the text character by character, becoming very slow on large amounts of data.
SELECT * FROM Articles
WHERE CONTAINS(Content, 'database');
Real-world example
A news website uses full text search to let visitors quickly search through thousands of articles for specific keywords, delivering fast results that a slow LIKE based search across the same amount of text could never achieve.
Likely follow-ups
  • Do you need to set up anything special before using full text search?
  • What is the performance difference between full text search and LIKE on a large table?
Related topics