Skip site navigation (1) Skip section navigation (2)

Re: Fix for stop words in thesaurus file

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fix for stop words in thesaurus file
Date: 2007-11-09 16:39:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackerspgsql-patches
Simon Riggs wrote:
> > I have developed the attached patch which uses "?" to mark stop words in
> > the thesaurus file.  ("*" was already in use in the file.)  I updated
> > the docs to use "?", which makes the documentation clearer too.
> > 
> > The patch also reenables testing of stop words in the thesuarus file.
> > 
> > FYI, there is no longer a NOTICE for stop words in the thesaurus file; 
> > it throws an error now, and says to use "?" instead.
> So this fix requires people to have a different dictionary file from 8.2
> to 8.3, and to manually edit the file? That makes upgrade even harder
> and more error prone.
> Seems easier to do it the way Tom suggested and only emit notices in the
> first case.

There is no easy way to do that so I have not heard that proposed as an
actual solution.

> I notice there's still a placeholder in the docs for how to upgrade.
> Perhaps if we wrote that now it would make it clearer where the
> difficulties lie?

Yes, this would be one of the many changes in the API.  Of course, if
you did use a stop word you would now get an error and it would tell you
explicitly to use "?" for stop words, so I don't see a problem here.

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-hackers by date

Next:From: Guillaume SmetDate: 2007-11-09 16:39:51
Subject: Re: [HACKERS] Estimation problem with a LIKE clause containing a /
Previous:From: Tom LaneDate: 2007-11-09 16:33:45
Subject: Re: [HACKERS] Estimation problem with a LIKE clause containing a /

pgsql-committers by date

Next:From: Robert TreatDate: 2007-11-09 16:46:05
Subject: Re: [COMMITTERS] pgsql: - Add check of already changed page while replay WAL.
Previous:From: Bruce MomjianDate: 2007-11-09 16:36:04
Subject: pgsql: Move pl/proxy into Multi-server parallel query execution

pgsql-patches by date

Next:From: Jan UrbaƄskiDate: 2007-11-09 16:47:31
Subject: Re: a tsearch2 (8.2.4) dictionary that only filters out stopwords
Previous:From: Magnus HaganderDate: 2007-11-09 13:24:16
Subject: Re: krb_match_realm

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group