I need to create a tsquery based on the string of the following format:
something-smth-somthing-etc-etc
Calling to_tsquery('something-smth-somthing-etc-etc') returns:
'something-smth-somthing-etc-etc' & 'someth' & 'smth' & 'somth' & 'etc' & 'etc'
Clearly, the string undergoes tokenization, stemming etc.
But in our case, the column on which we are making the FTS, already contains tsvector which consists of a single lexeme: 'something-smth-somthing-etc-etc'.
The query
select * from sometable where searchee @@ to_tsquery('something-smth-somthing-etc-etc') returns no results.
How can I call to_tsquery, so it will not analyze the provided string and create a single lexeme query?
Or am I missing something more major here?