Re: tsearch2 for 7.3.X

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Andreas Joseph Krogh <andreak(at)officenet(dot)no>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: tsearch2 for 7.3.X
Date: 2003-07-22 09:38:53
Message-ID: 3F1D062D.80404@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
>>I think it's production quality. Actually, we use it in our
>>projects with 7.3.3. You may read docs on tsearch2 home page
>>http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
>
>
> You know what would be an AWESOME feature? The ability to process user
> queries directly:
>
> eg.
>
> SELECT intindex, strtopic FROM tblmessages
> WHERE idxfti @@ 'jam and
> toast -guitar'::userquery::tsquery;

idxfti @@ 'jam & toast & ! guitar'

>
> Or be able to understand stuff like:
>
> 'jam and toast or (jam -guitar)

'(jam & toast) | ( jam & !guitar )'

Sintax of query is boolean expression. Look at 'The tsearch2 Guide'
(http://rhodesmill.org/brandon/projects/tsearch2-guide.html)

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lee Kindness 2003-07-22 10:12:33 threads.c
Previous Message Lee Kindness 2003-07-22 08:14:21 PATCH: Memory leaks on start-up