Re: Full text search strategy for names

From: John DeSoi <desoi(at)pgedit(dot)com>
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-18 12:54:11
Message-ID: BC2D830C-A758-4426-A6D7-EDE022F07BC2@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Apr 17, 2009, at 7:02 AM, Rick Schumeyer wrote:

> You can get extra (undesirable) results, depending on the name. For
> example, if you are searching for the last name of "Ricks", you will
> also find all authors whose first name is "Rick"

If you can process the names separately from the rest of the text, try

select to_tsvector('simple', 'claude Jones');

to_tsvector
----------------------
'jones':2 'claude':1

John DeSoi, Ph.D.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-04-18 14:21:29 Re: Community account
Previous Message Greg Stark 2009-04-18 12:39:27 Re: [GENERAL] Performance of full outer join in 8.3