Re: How to remove the possibility to search the parts of a compound word with hyphen

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Fco(dot) Mario Barcala" Rodríguez <lbarcala(at)freeresearch(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to remove the possibility to search the parts of a compound word with hyphen
Date: 2008-07-14 18:20:14
Message-ID: 29238.1216059614@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Fco. Mario Barcala" =?ISO-8859-1?Q?Rodr=EDguez?= <lbarcala(at)freeresearch(dot)org> writes:
> Is it possible to remove the possibility of searching the parts of a
> word which include a hyphen? I know that the default parser identifies
> all possibilities (the compound word and the individual part ones), but
> I would like to make possible to search only for the compound word, but
> not for the parts.

Sure, just set up your text search configuration so that word-parts are
discarded instead of being passed through to the dictionary(s).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-07-14 18:52:27 Re: UPDATE runs slow in a transaction
Previous Message Scott Marlowe 2008-07-14 18:14:26 statement timeout and pg_dump