Skip site navigation (1) Skip section navigation (2)

Re: simple web search

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Louis-David Mitterrand <vindex+lists-pgsql-sql(at)apartia(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: simple web search
Date: 2007-02-23 18:50:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
On Fri, 23 Feb 2007, Louis-David Mitterrand wrote:

> On Fri, Feb 23, 2007 at 01:31:14PM -0500, Joe wrote:
>> Hello Louis-David,
>> On Fri, 2007-02-23 at 17:27 +0100, Louis-David Mitterrand wrote:
>>> I'm considering implementing a search box on my review web site
>>> and am looking for a simple way to match
>>> entered words against several columns on related tables: show.show_name,
>>> story.title, person.firtname, person.lastname, etc.
>>> What is the most elegant way to build a single query to match search
>>> words with multiple columns?
>> You may want to take a look at contrib/tsearch2.
> Thanks Joe, I initially wanted to avoid dipping my toe into tsearch2 but
> it might be what I need after all :)

Don't be afraid, it's not so difficult to start.

Oleg Bartunov, Research Scientist, Head of AstroNet (,
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su,
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

pgsql-sql by date

Next:From: SumeetDate: 2007-02-23 19:29:13
Subject: selecting random row values in postgres
Previous:From: Louis-David MitterrandDate: 2007-02-23 18:34:52
Subject: Re: simple web search

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group