tsearch2 word separators - Mailing list pgsql-general

From Sushant Sinha
Subject tsearch2 word separators
Date
Msg-id 1205452567.5784.8.camel@dragflick
Whole thread Raw
Responses Re: tsearch2 word separators  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-general
A document may contain date in the traditional format. For example it
may contain '11/1/2007'. It will be useful if we can directly search for
year in a document. However, the 'default' tsearch2 parser  does not
break down integers separated by '/'. So I my search for '2007' will not
match tsvector for '11/1/2007'. Here is an example

cmsdb=# select to_tsvector('default', '11/1/2007');
  to_tsvector
----------------
 '11/1/2007':1

I think this can be easily fixed if we use '/' as a word separator. Is
there an way to specify word separators in tsearch2 module?

Thank you,
-Sushant.


pgsql-general by date:

Previous
From: Clodoaldo
Date:
Subject: Re: Reindex does not finish 8.2.6
Next
From: Tom Lane
Date:
Subject: Re: My CPU usage remains over 50% with Postgre