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

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 (view raw or flat)
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

pgsql-general by date

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

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