Re: [PATCH] Phrase search ported to 9.6

From: Andreas Joseph Krogh <andreas(at)visena(dot)com>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Oleg Bartunov <obartunov(at)gmail(dot)com>, Dmitry Ivanov <d(dot)ivanov(at)postgrespro(dot)ru>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, Artur Zakirov <a(dot)zakirov(at)postgrespro(dot)ru>, Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, David Steele <david(at)pgmasters(dot)net>
Subject: Re: [PATCH] Phrase search ported to 9.6
Date: 2016-04-01 13:42:06
Message-ID: VisenaEmail.8.c7513bdf4b62d6b.153d20ee695@tc7-visena
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

På fredag 01. april 2016 kl. 15:22:55, skrev Teodor Sigaev <teodor(at)sigaev(dot)ru
<mailto:teodor(at)sigaev(dot)ru>>:
> there was a character that was very similar to dots I would suggest
> that.  The closest is * I think, so what do you think of "***"?

And join opertator for tsqueries is the same :
select 'fat'::tsquery *** 'cat'; ?

Single '*' ?  That's close to regex, any number of tokens. And it saves rules
about duplicating character.

select 'fat'::tsquery ** 'cat';
select 'fat * cat'::tsquery;
select 'fat * [3] cat'::tsqyery; -- for non-default distance.
 
What about ~> ?
 
-- Andreas Joseph Krogh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2016-04-01 13:49:35 pgsql: Bloom index contrib module
Previous Message Shulgin, Oleksandr 2016-04-01 13:36:08 Re: SSL indicator in psql prompt