Introduction
to_tsvector changes text into a form that helps find words quickly in a big document.
to_tsvector([config,] document)
SELECT to_tsvector('english', 'The quick brown fox jumps over the lazy dog');
SELECT to_tsvector('The quick brown fox');
SELECT to_tsvector('simple test');
SELECT to_tsvector('english', 'PostgreSQL is a powerful, open source object-relational database system.');
to_tsvector do?to_tsvectorto_tsvector's purpose.to_tsvector(language, text), where language is a string like 'english'.to_tsvector('english', 'Hello World'). Others have wrong order or missing quotes.SELECT to_tsvector('english', 'The quick brown fox jumps over the lazy dog');SELECT to_tsvector(english, 'PostgreSQL is great');
content in table articles using to_tsvector with French language rules. Which SQL statement correctly creates a GIN index for fast full-text search?to_tsvector.Pass the test and this pattern moves unknown