Objective: Full-Text Search
Any application that stores text needs to search for words or phrases within that text. We use databases to store more textual data than ever, and at the same time we demand to be able to search for matching text at greater speeds. Web applications especially need high-performance and scalable database techniques for searching text.
One fundamental principle of SQL (and relational theory from which SQL is derived) is that a value in a column is atomic. That is, you can compare a value to another value, but you always compare the whole value when you do that. Comparing substrings is bound to be inefficient or inaccurate in SQL.
In spite of this, we need a way to compare a short string to a longer string and find ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access