I have such a query where I use the to_tsvector function.
The documentation says:
to_tsvectorparses a textual document into tokens, reduces the tokens to lexemes
But sometimes the function to_tsvector changes some names incorrectly. Is it possible for some words to cancel the cast to tokens?
For example, for the value "Илья" to disable it, and for all other cases make it enable?
SELECT c.id,
tsvector_agg(to_tsvector('russian',
coalesce(cv.data ->> 'name', '') || ' ' ||
coalesce(cv.data ->> 'surname', '') || ' ' ||
)) as v
FROM client c