TO_TSVECTOR
Prepares text for full-text search: splits it into words and reduces them to their stems.
Syntax
TO_TSVECTOR('<language config>', <text>)
<tsvector> @@ <tsquery>
Turns text into a tsvector — a set of word stems with their positions. A language configuration such as 'english' drops stop words (the, are) and reduces word forms to a stem: foxes becomes fox, running becomes run. You search it with the @@ operator together with TO_TSQUERY. Not every language has a built-in configuration — for those you use 'simple' or an extension.