From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org, Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | Aidan Van Dyk <aidan(at)highrise(dot)ca>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: Simplifying Text Search |
Date: | 2007-11-13 11:54:49 |
Message-ID: | 200711131254.50217.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Am Montag, 12. November 2007 schrieb Martijn van Oosterhout:
> On Mon, Nov 12, 2007 at 03:44:18PM -0500, Aidan Van Dyk wrote:
> > Can LIKE be easily overloaded in the parser? So:
> > text LIKE text
> > works in it's current form, and
> > tsvector LIKE tsquery
> > also works like the @@? Or have I gotten all the ts* types all mixed up
> > again...
>
> AIUI LIKE is mashed into an operator at parse time, so yes, if you
> create the operator with the right name it will just work.
What we'd need is a way to convert a LIKE pattern into a tsquery ('%foo%bar%'
=> 'foo & bar'). Then you might even be able to sneak index-optimized text
search into existing applications. Might be worth a try.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2007-11-13 11:58:43 | Re: Simplifying Text Search |
Previous Message | Peter Eisentraut | 2007-11-13 10:39:34 | Re: pgsql: Use strip -x on OS/X-darwin because non-"-x" causes link |