Skip site navigation (1) Skip section navigation (2)

Re: Text Search zero padding

From: Richard Huxton <dev(at)archonet(dot)com>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Richard Greenwood <richard(dot)greenwood(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Text Search zero padding
Date: 2008-02-29 09:55:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Oleg Bartunov wrote:
> On Thu, 28 Feb 2008, Richard Greenwood wrote:
>> So far my best idea is to create a tsvector column containing both
>> padded and non-padded versions of the value. i.e. put both R1234 and
>> R0001234 into the tsvector column. This seems pretty brute force, and
>> I am pretty new to text search, so I'd welcome any suggestions.
> create your dictionary, which index R0001234 as R0001234 and R1234
> Seems, dict_regex is your friend.

Nice - I was thinking something like that would be useful, but Googling 
hadn't found me anything. Thanks for that link Oleg.

Wouldn't it be more efficient to have the regex-dictionary map just to 
R1234 though? Or R0001234, I suppose.

   Richard Huxton
   Archonet Ltd

In response to


pgsql-general by date

Next:From: Tim RuppDate: 2008-02-29 10:08:39
Subject: Re: rule question
Previous:From: Gurjeet SinghDate: 2008-02-29 09:23:05
Subject: Re: LIMIT Question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group