Re: FTS question

From: Richard Huxton <dev(at)archonet(dot)com>
To: d_rems(at)yahoo(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: FTS question
Date: 2008-07-01 09:05:16
Message-ID: 4869F34C.9020705@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Damjan Rems wrote:
>> Um - you're using the full-text indexing. It's
>> supposed to search words.
>>
>> You can use any of the pattern-matching functions /
>> operators (LIKE etc)
>> here if you want to explicitly match characters.
>> http://www.postgresql.org/docs/current/static/functions-matching.html
>>
>> If that's not what you're after, you'll need to
>> explain what you are
>> trying to do.
>
> Id would like to get aproximatly this.
> WHERE name LIKE 'somes%'
>
> But how do I construct FTS query for this?

Well, you don't. Like Oleg says, there should be prefix support in 8.4,
but even then I'm not sure It will do precisely what you want.

Depending on the various transformations / stopwords you have set up in
your dictionaries a single search-word might end up as one or several.

What precisely are you trying to do? I'm having difficulties figuring
out when I'd want "cat" to match "catch" and "catamaran" at the same time.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-07-01 09:06:54 Re: Re: problem getting postgres 8.3.1 with xml support to work on Redhat Enterprise Linux 4
Previous Message Richard Huxton 2008-07-01 08:58:26 Re: Query Fails