followed by example doesn't work

From: barbiomalefico(at)gmail(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: followed by example doesn't work
Date: 2017-12-03 09:35:46
Message-ID: 20171203093546.27110.95117@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/textsearch-intro.html
Description:

I copied the text in the followed by example: SELECT to_tsvector('fatal
error') @@ to_tsquery('fatal <-> error');
but it will always goes in error: ERROR: syntax error in tsquery: "fatal
<-> error"
SQL state: 42601
I find two ways to solve the problem:
1. remove the space inside the to_tsquery string to obtain 'fatal<->error'
2. use plainto_tsquery instead of to_tsquery.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2017-12-03 15:22:33 Re: followed by example doesn't work
Previous Message Peter Eisentraut 2017-12-01 18:39:33 generate.consistent.ids