Re: A couple of tsearch loose ends

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Subject: Re: A couple of tsearch loose ends
Date: 2007-08-22 07:34:27
Message-ID: 200708220934.30474.dfontaine@hi-media.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi list,

Le mardi 21 août 2007, Tom Lane a écrit :
> CREATE TEXT SEARCH DICTIONARY swedish (
> TEMPLATE = snowball,
> LANGUAGE = swedish,
> STOPWORDS = swedish
> );
>
> ALTER TEXT SEARCH DICTIONARY swedish (
> STOPWORDS
> );
>
> this dictionary would have LANGUAGE = swedish and no stopwords option.
>
> Any objections to changing it like that?

I don't understand why this ALTER variation is so different from existing
ones, but maybe the following syntax can't work:
ALTER TEXT SEARCH DICTIONARY swedish ALTER STOPWORDS SET swedish;

For dropping an option, could one of those commands do?
ALTER TEXT SEARCH DICTIONARY swedish DROP STOPWORDS;
ALTER TEXT SEARCH DICTIONARY swedish ALTER STOPWORDS SET NULL;

Not sure if it's doable or if it really looks more like other ALTER commands,
but I think I'd like it more this way :)

Hope this helps,
--
dim

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-08-22 08:32:52 Re: Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?
Previous Message Pavan Deolasee 2007-08-22 06:59:02 Re: HOT patch, missing things