Re: Text Searching?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Announce <truthhurts(at)insightbb(dot)com>
Cc: Postgres Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Text Searching?
Date: 2005-10-10 03:55:18
Message-ID: 20051010035518.GA87538@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, Oct 09, 2005 at 10:23:13PM -0500, Announce wrote:
> A. Any suggestions for doing full-text searches in Postgres?

See the contrib/tsearch2 and contrib/pg_trgm modules.

> B. How should the fields be defined? Should they be VARCHAR with a character
> limit or just TEXT,etc?

The underlying implementation is the same so ultimately it probably
doesn't matter. Some people like to use TEXT with a CHECK constraint
on the length because it's easier to change, especially in versions
of PostgreSQL prior to 8.0.

--
Michael Fuhr

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Prasad dev 2005-10-10 12:10:27 Stored Procedures Basics
Previous Message Announce 2005-10-10 03:23:13 Text Searching?