Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ?

From: Jean-Pierre Pelletier <jppelletier(at)e-djuster(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ?
Date: 2016-06-07 18:34:03
Message-ID: c19fcfec308e6ccd952cdde9e648b505@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I wanted to test if phraseto_tsquery(), new with 9.6 could be used for
matching consecutive words but it won't work for us if it cannot handle
consecutive *duplicate* words.

For example, the following returns true: select
phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue');

Is this expected ?

Thanks,
Jean-Pierre Pelletier

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2016-06-07 18:40:23 Re: Problem with dumping bloom extension
Previous Message Peter Eisentraut 2016-06-07 17:36:51 Re: parallel.c is not marked as test covered