From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Mickaël DA ROCHA <MICKAEL(at)documentnumerique(dot)fr> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Full Text Search : Parse date |
Date: | 2010-05-11 15:00:29 |
Message-ID: | Pine.LNX.4.64.1005111858430.25553@sn.sai.msu.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 11 May 2010, Micka?l DA ROCHA wrote:
> Hello,
>
> We have a document that contains a date (french date for example) : 28-04-2009 (28 April 2009)
>
> In the to_tsvector function, it is noted as :
> '-04':2 '-2009':3 '28':1
>
> Is it possible to have something like that (a date) :
> '28-04-2009':1
>
> Does a Parser Token Type for date exists ? (? DD-MM-YYYY ?, ? DD-MM-YY ?, ? YYYY-MM-DD ?, ? YY-MM-DD ?, with ? - ? or ? / ?)
> (we haven't found it)
>
> Is there another solution ? Any clue ?
you can write your own function to transform date to the format of tsearch parser.
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | tv | 2010-05-11 15:06:41 | Re: deadlock on simple update |
Previous Message | Simon Riggs | 2010-05-11 14:59:32 | Re: List traffic |