Re: "simple" dict with stop words in tsearch2 - Mailing list pgsql-general

From Pierre Thibaudeau
Subject Re: "simple" dict with stop words in tsearch2
Date
Msg-id 74b035bb0701291349g6abbc90u8c6e23ea402a8b26@mail.gmail.com
Whole thread Raw
In response to Re: "simple" dict with stop words in tsearch2  (Oleg Bartunov <oleg@sai.msu.su>)
List 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)

pgsql-general by date:

Previous
From: "Karen Hill"
Date:
Subject: PostgreSQL 9.0
Next
From: Ron Johnson
Date:
Subject: Re: Converting 7.x to 8.x