Re: Adding an alternate syntax for Phrase Search

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Josh berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Adding an alternate syntax for Phrase Search
Date: 2016-05-22 22:53:45
Message-ID: 57423879.10507@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> to_tsquery(' Berkus & "PostgreSQL Version 10.0" ')
>
> ... would be equivalent to:
>
> to_tsquery(' Berkus & ( PostgreSQL <-> version <-> 10.0 )')

select to_tsquery('Berkus') && phraseto_tsquery('PostgreSQL Version 10.0');
does it as you wish

>
> I realize we're already in beta, but pgCon was actually the first time I
> saw the new syntax. I think if we don't do this now, we'll be doing it
> for 10.0.
Havn't an objections for 10.0
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-05-23 00:32:22 Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
Previous Message Michael Paquier 2016-05-22 21:15:55 Re: Parallel query