Re: "simple" dict with stop words in tsearch2

From: "Pierre Thibaudeau" <pierdeux(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: "simple" dict with stop words in tsearch2
Date: 2007-01-29 21:49:45
Message-ID: 74b035bb0701291349g6abbc90u8c6e23ea402a8b26@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brilliant! Thank you!

> > In tsearch2, I would like to use the "simple" dictionary along with my
> > own list of stopwords.
> > [...]
>
> sure, just specify dict_initoption. For example,
> test=# update pg_ts_dict set dict_initoption='contrib/english.stop' where dict_name='simple';
> UPDATE 1
> test=# select lexize('simple', 'the');
> lexize
> --------
> {}
> (1 row)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-01-29 22:04:30 Re: Converting 7.x to 8.x
Previous Message Karen Hill 2007-01-29 21:27:19 PostgreSQL 9.0