Re: How to remove the possibility to search the parts of a compound word with hyphen - Mailing list pgsql-general

From Tom Lane
Subject Re: How to remove the possibility to search the parts of a compound word with hyphen
Date
Msg-id 29238.1216059614@sss.pgh.pa.us
Whole thread Raw
In response to How to remove the possibility to search the parts of a compound word with hyphen  ("Fco. Mario Barcala" Rodríguez<lbarcala@freeresearch.org>)
List pgsql-general
"Fco. Mario Barcala" =?ISO-8859-1?Q?Rodr=EDguez?= <lbarcala@freeresearch.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

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: statement timeout and pg_dump
Next
From: Tom Lane
Date:
Subject: Re: UPDATE runs slow in a transaction