Re: to_tsquery and to_tsvector .. problem with Y - Mailing list pgsql-general

From Andreas Joseph Krogh
Subject Re: to_tsquery and to_tsvector .. problem with Y
Date
Msg-id OrigoEmail.c2.89edae3c0528738c.13b86d8dd84@prod2.officenet.no
Whole thread Raw
In response to to_tsquery and to_tsvector .. problem with Y  (akp geek <akpgeek@gmail.com>)
List pgsql-general
P=C3=A5 mandag 10. desember 2012 kl. 21:38:45, skrev akp geek <<a h=
ref=3D"mailto:akpgeek@gmail.com" target=3D"_blank">akpgeek@gmail.com>=
;:

<blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt=
 0pt 0pt 0.8ex; padding-left: 1ex;">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:</d=
iv>

=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=

pgsql-general by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: to_tsquery and to_tsvector .. problem with Y
Next
From: Alex Burkoff
Date:
Subject: execution plan is wrong, or the query ?