On Mon, 5 Dec 2005, Marcus Engene wrote:

Hi,

I use the tsearch full text search with pg 8.0.3. It works great, but I wonder if it's possible to search for compound words?
Ie if I search for "New York" i want to get a match on
 New York has traffic problems.
but not on
 New axe murderer incident in brittish York.

Is this possible?

I don't use any wrapper, just
select
...
from
...
where
idxfti @@ to_tsquery('default', 'searchstring')


ranking function is what you need. Read documentation.


Thanks,
Marcus


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to [EMAIL PROTECTED] so that your
     message can get through to the mailing list cleanly


        Regards,
                Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to