Re: Full text search strategy for names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rick Schumeyer <rschumeyer(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Full text search strategy for names
Date: 2009-04-17 05:04:48
Message-ID: 12096.1239944688@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rick Schumeyer <rschumeyer(at)gmail(dot)com> writes:
> I want to be able to search a list of articles for title words as well as
> author names. I understand how to do the title words with the full text
> searching. But I'm not sure the best strategy for the names. The full text
> parser "parses" the names giving undesirable results.

> For example,

> select to_tsvector('claude Jones');
> to_tsvector
> --------------------
> 'jone':2 'claud':1

Er ... why is that a problem? As long as the index stems the words in
the same way that the query does, why should you care?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-04-17 06:13:30 Re: pgadmin 1.8.4 gives error while backing up
Previous Message Craig Ringer 2009-04-17 04:09:00 Re: Does anyone use postgreSQL(windows version)+Hibernate with middlegen?