Re: full text search and ILIKE type clauses.

From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: full text search and ILIKE type clauses.
Date: 2012-03-12 03:09:32
Message-ID: CAGuHJrMohOyTJ51xJ=7TX4nZ3Vk8cWQ-PbEqomiAOcYmPvAQGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> If you're using 9.1, you might look into contrib/pg_trgm instead.

If I was to use trgm would it be better to create a trigram index on
each text field? In the past I have created a text field which
contains the rest of the fields concatenated. That works great as long
as you are looking for any word. Is there a way to specify which word
should match? Could I combine hstore and tgm to match against
individual words?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Aleksey Tsalolikhin 2012-03-12 06:32:53 Re: A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?
Previous Message Tom Lane 2012-03-12 02:56:45 Re: full text search and ILIKE type clauses.