Re: Similarity Search with Wildcards

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Similarity Search with Wildcards
Date: 2013-02-28 07:12:15
Message-ID: 512F034F.5050908@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/27/2013 10:35 PM, Ghislain Hachey wrote:
> I have a varchar column with content such as "Client Name - Brief
> Description of Problem" (it's a help desk ticket system). I want to
> generate reports by clients and the only thing I can base my query on
> is this column. The client names often contain typos or are entered
> slightly differently. I installed the pg_trgm extension and it almost
> does what I want. The problem is that it searches the similarity of
> the whole field and not just the client name resulting in not so
> similar searches (I include my query below).

why isn't client name a separate field?? thats the logical approach

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ghislain Hachey 2013-02-28 08:02:44 Re: Similarity Search with Wildcards
Previous Message Ghislain Hachey 2013-02-28 06:35:37 Similarity Search with Wildcards