Full Text Search : Parse date

From: Mickaël DA ROCHA <MICKAEL(at)documentnumerique(dot)fr>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Full Text Search : Parse date
Date: 2010-05-11 13:19:58
Message-ID: 13B1BB0E66E3BC4FAF5AB8382499F6E41A4466@exchange2003.documentnumerique.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 ?

Thank You



Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2010-05-11 13:50:04 Re: List traffic
Previous Message Jiří Pavlovský 2010-05-11 10:01:16 deadlock on simple update