I am trying to retrieve the data from the a database using to_tsquery() on the basis of text search. I am able to get the results for complete word search but not for the substring.
Example:
SELECT * FROM snp_gene_context WHERE protein_name @@ to_tsquery('english','KIN') AND gene_dist='0'; I am able to get the rows containing the word 'KIN11' but I am unable to get rows containing 'Kinase'.
'%kin%'?to_tsquery('kin:*')-- for a more custom containment testing, you can uselike/ilikewithpg_trgmindex (what Tometzky already mentioned).