Re: Simplifying Text Search - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Simplifying Text Search
Date
Msg-id 1194941567.2644.276.camel@ebony.site
Whole thread Raw
In response to Re: Simplifying Text Search  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
On Tue, 2007-11-13 at 08:58 +0100, Pavel Stehule wrote:
> On 13/11/2007, Simon Riggs <simon@2ndquadrant.com> wrote:

> > I'm thinking we can have an inlinable function
> >
> > contains(text, text) returns int
> >
> > Return values limited to just 0 or 1 or NULL, as with SQL/MM.
> > It's close to SQL/MM, but not exact.
> >
> > contains(sourceText, searchText) is a macro for
> >
> > case to_tsvector(default_text_search_config, sourceText) @@
> > to_tsquery(default_text_search_config, searchText)
> > when true then 1
> > when false then 0
> > else null
> > end
> >
> 
> it's look well.

I think it needs lot more thought yet. Travelling now, so not able to
add further. Will pick up again in next few days.

--  Simon Riggs 2ndQuadrant  http://www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Simplifying Text Search
Next
From: Heikki Linnakangas
Date:
Subject: Re: How to keep a table in memory?