Re: full text index / search

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "Philipp Kraus *EXTERN*" <philipp(dot)kraus(at)flashpixx(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: full text index / search
Date: 2012-06-18 09:13:56
Message-ID: df7860b5a70f1eb73a5aebe9b83b4a65.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 18 Červen 2012, 11:04, Albe Laurenz wrote:
> Philipp Kraus wrote:
>> 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).
>
> A full text index won't help you with regular expressions.
> It will only help with full text search using the match operator @@.

Also, it's possible to create regular index with custom operator class for
pattern matching queries. See this

http://www.postgresql.org/docs/9.1/interactive/indexes-opclass.html

Not a full-text index, though ...

T.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message utsav 2012-06-18 09:30:47 Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION
Previous Message Albe Laurenz 2012-06-18 09:04:53 Re: full text index / search