I can add index support and support for arbitrary distance between
lexeme. It appears to me that supporting arbitrary boolean expression will be
complicated. Can we pull out something from TSQuery?

I don't very like an idea to have separated interface for phrase search. Your patch may be a module and used by people who really wants to have a phrase search.

Introducing new operator in tsquery allows to use already existing infrastructure of tsquery such as concatenations (&&, ||, !!), rewrite subsystem etc. But new operation/types specially designed for phrase search makes needing to make that work again.

--
Teodor Sigaev                                   E-mail: [EMAIL PROTECTED]
                                                   WWW: http://www.sigaev.ru/

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to