Re: full text index / search

From: Mark Phillips <Mark(dot)Phillips(at)mophilly(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: full text index / search
Date: 2012-06-15 20:20:52
Message-ID: BAAA89D1-5C09-4DB9-BA65-1B7E6296428B@mophilly.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am not an expert on FTS, but I have been reading and experimenting. Further, I don't know what you are really attempting. With those warnings behind us, I think a GIN or GiST index are helpful in full text searches.

You may find this useful:
Understanding Full Text Search
http://linuxgazette.net/164/sephton.html

I suggest that you review the Postgres Documentation for FTS:
http://www.postgresql.org/docs/9.1/interactive/textsearch.html

One option you may find interesting is the pg_trgm module:
http://www.postgresql.org/docs/9.1/static/pgtrgm.html

hth,

- Mark Phillips

On Jun 15, 2012, at 8:18 AM, Philipp Kraus wrote:

> Hello,
>
> I have created a table with a text field under PG 9.1, that should store source codes. I would like to search in this text field with regular expressions. I think I need a full-text-index, do I?
> How can I create this index, do I need some additional extensions? The PG server runs under OSX (installed on the DMG package).
>
> Thanks
>
> Phil
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2012-06-16 00:01:51 Re: pg_upgrade: "pg_ctl failed to start the new server"
Previous Message Benedict Holland 2012-06-15 18:58:32 Re: Smaller multiple tables or one large table?