Re: Text Search zero padding - Mailing list pgsql-general

From Richard Huxton
Subject Re: Text Search zero padding
Date
Msg-id 47C7D68F.5010608@archonet.com
Whole thread Raw
In response to Re: Text Search zero padding  (Oleg Bartunov <oleg@sai.msu.su>)
Responses Re: Text Search zero padding
List 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.
> http://vo.astronet.ru/arxiv/dict_regex.html

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

pgsql-general by date:

Previous
From: "Gurjeet Singh"
Date:
Subject: Re: LIMIT Question
Next
From: Tim Rupp
Date:
Subject: Re: rule question