to_tsquery and to_tsvector .. problem with Y
to_tsquery and to_tsvector .. problem with Y
От:
akp geek <akpgeek@gmail.com>
Дата:
Hi all -
We are using to_tsquery and to_tsvector quite a bit. I have noticed that it is not searching for "Y". is there some settings I have to do make sure when search for string that has "Y" to return the correct results?
Thanks for the help
Regards
Re: to_tsquery and to_tsvector .. problem with Y
От:
Sergey Konoplev <gray.ru@gmail.com>
Дата:
On Mon, Dec 10, 2012 at 12:38 PM, akp geek wrote: > We are using to_tsquery and to_tsvector quite a bit. I have > noticed that it is not searching for "Y". is there some settings I have to > do make sure when search for string that has "Y" to return the correct > results? Could you please show a query that works incorrect for you and the default_text_search_config setting's value? > > > Thanks for the help > Regards > -- Sergey Konoplev Database and Software Architect http://www.linkedin.com/in/grayhemp Phones: USA +1 415 867 9984 Russia, Moscow +7 901 903 0499 Russia, Krasnodar +7 988 888 1979 Skype: gray-hemp Jabber: gray.ru@gmail.com
Re: to_tsquery and to_tsvector .. problem with Y
От:
Andreas Joseph Krogh <andreak@officenet.no>
Дата:
P=C3=A5 mandag 10. desember 2012 kl. 21:38:45, skrev akp geek <akpgeek@gmail.com>= ;:Hi all - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0We are using to_tsquery and to_tsvec= tor quite a bit. =C2=A0I have noticed that it is not searching for "Y&= quot;. =C2=A0 is there some settings I have to do make sure when search for= string that has "Y" to return the correct results? =C2=A0 My guess is that the word you'r searching for ends with 'Y' and stemmi= ng removes the ending 'Y'. Try using the 'simple' dictionary, like this: =C2=A0 WHERE searchable_index_col @@ to_tsquery('simple', 'emily'); =C2=A0 -- Andreas Joseph Krogh <andreak@officenet.no>=C2=A0 =C2=A0 =C2=A0 mob: = +47 909 56 963 Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no Public key: http://home.officenet.no/~andreak/public_key.asc =C2=A0=