From: | Jan Urbański <j(dot)urbanski(at)students(dot)mimuw(dot)edu(dot)pl> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: a tsearch2 (8.2.4) dictionary that only filters out stopwords |
Date: | 2007-11-14 02:48:02 |
Message-ID: | 473A61E2.4070908@students.mimuw.edu.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Jan Urbański wrote:
> Great, I didn't know the API was that convenient in 8.3. I'll try
> posting a working patch for 8.3 during the weekend.
Here's the patch for 8.3beta2. As was suggested I added a configuration
parameter to the 'simple' dictionary called AcceptAll so now it can work
in two modes: either accept everything (the default) or do not
reckognize anything (return NULL). Of couse stopwords are still being
weeded out.
The patch includes changes to the documentation (which was inconsistent
by the way: it stated that the 'simple' dictionary returns NULL for
stopwords, when in fact it returns an empty array).
Regards,
Jan Urbanski
--
Jan Urbanski
GPG key ID: E583D7D2
ouden estin
Attachment | Content-Type | Size |
---|---|---|
tsearch-8.3-simple-acceptall.patch | text/plain | 3.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2007-11-14 02:58:27 | Re: Simplifying Text Search |
Previous Message | Trevor Talbot | 2007-11-14 02:42:46 | Re: Simplifying Text Search |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2007-11-14 02:58:42 | Re: [HACKERS] plperl and regexps with accented characters - incompatible? |
Previous Message | Tom Lane | 2007-11-14 00:29:23 | Re: Contrib docs v1 |