followed by example doesn't work - Mailing list pgsql-docs

From barbiomalefico@gmail.com
Subject followed by example doesn't work
Date
Msg-id 20171203093546.27110.95117@wrigleys.postgresql.org
Whole thread Raw
Responses Re: followed by example doesn't work
List 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.

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: generate.consistent.ids
Next
From: Tom Lane
Date:
Subject: Re: followed by example doesn't work