Re: Simplifying Text Search - Mailing list pgsql-hackers

From Aidan Van Dyk
Subject Re: Simplifying Text Search
Date
Msg-id 20071112204418.GI10585@yugib.highrise.ca
Whole thread Raw
In response to Re: Simplifying Text Search  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Simplifying Text Search
List pgsql-hackers
* Heikki Linnakangas <heikki@enterprisedb.com> [071112 15:18]:
> Simon Riggs wrote:

> >Right now, Full Text Search SQL looks like complete gibberish and it
> >dissuades many people from using what is an awesome set of features. I
> >just want to add a little sugar to help people get started.

> Granted, @@ is a bit awkward until you get used to it. "x LIKE y" would 
> read out better, but unfortunately that's already taken ;-).

Can LIKE be easily overloaded in the parser?  So:text LIKE text
works in it's current form, andtsvector LIKE tsquery
also works like the @@?  Or have I gotten all the ts* types all mixed up
again...

But it doesn't buy anything except avoiding the "@@" that people seem to not
grok easily, and it might actually cause more grief, because of people
confusing the 2 forms of LIKE.

a.

-- 
Aidan Van Dyk                                             Create like a god,
aidan@highrise.ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Simplifying Text Search
Next
From: Simon Riggs
Date:
Subject: Re: Simplifying Text Search