| From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | obartunov(at)gmail(dot)com, Jean-Pierre Pelletier <jppelletier(at)e-djuster(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ? |
| Date: | 2016-06-17 15:07:37 |
| Message-ID: | 57641239.3020201@sigaev.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
>> Such algorithm finds closest pair of (Lpos, Rpos) but satisfying pair could be
>> not closest, example: to_tsvector('simple', '1 2 1 2') @@ '1 <3> 2';
>
> Oh ... the indexes in the lists don't have much to do with the distances,
> do they. OK, maybe it's not quite as easy as I was thinking. I'm
> okay with the patch as presented.
Huh, I found that my isn't correct for example which I show :(. Reworked patch
is in attach.
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/
| Attachment | Content-Type | Size |
|---|---|---|
| phrase_exact_distance-2.patch | binary/octet-stream | 7.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2016-06-17 15:12:18 | Re: Restriction of windows functions |
| Previous Message | Tom Lane | 2016-06-17 14:53:36 | Re: New design for FK-based join selectivity estimation |