Re: Another bug in tsearch?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>, Teodor Sigaev <teodor(at)stack(dot)net>
Subject: Re: Another bug in tsearch?
Date: 2002-11-05 08:41:04
Message-ID: Pine.GSO.4.44.0211051135320.13001-100000@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 5 Nov 2002, Christopher Kings-Lynne wrote:

> Hi Oleg & Teodor,
>
> This behaviour is causing problems in my search engine:
>
> australia=# select 'banana/pineapple'::mquery_txt;
> mquery_txt
> --------------------
> 'banana/pineapple'
> (1 row)
>
> In our case the forward slash symbol should really be treated as a word
> break. Are there any cases where it shouldn't be? I can maybe only think
> of 3/4, etc.

I wouldn't say it's a bug. It's a feature and called 'filename or path' :)
Probably we should interpret it as 3 lexems
'banana/pineapple', 'banana', 'pineapple' or 2 last lexems ?
Then you'll have a lot if noise for texts like mailing lists.
You could adapt parser to suit you needs, anyway.

>
> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2002-11-05 08:47:18 Re: protocol change in 7.4
Previous Message Karel Zak 2002-11-05 08:35:31 Re: protocol change in 7.4