I am using Postgresql with full test search with english dict. When I want to receive records with some english words I get verid results.
And so:
SELECT id FROM table1 WHERE ts_vector1 @@ to_tsquery('it')
returns 0 results.
SELECT id FROM table1 WHERE ts_vector1 @@ to_tsquery('specialist & it')
returns more than 0 results (word 'it' exists in table and index). ts_vector1 is created as follow:
ts_vector1 = to_tsvector('english', some_text_column)
Is 'it' a reserved word? If so, what is the best way to 'escape' reserved words?