tsquery error

From: Stephen Davies <sdavies(at)sdc(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: tsquery error
Date: 2017-07-11 06:00:33
Message-ID: b690d36e-337e-542a-0d6c-4114192b8902@sdc.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The following query give the error:

select
id,title,dtype,source,used_for,ts_headline('english',content,to_tsquery('english','
ma waterflux'),'minWords = 99, maxWords = 999') from info where clob @@
to_tsquery('english',' ma waterflux') order by title,dtype,source,used_for;
ERROR: syntax error in tsquery: " ma waterflux"

Remove either the "ma" or the "waterflux" and the query works.

What is causing the error?

(MA Waterflux is a product name.)

Cheers and thanks,
Stephen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Krithika Venkatesh 2017-07-11 06:28:55 Materialised view - refresh
Previous Message Alexander Farber 2017-07-11 05:48:42 Re: How to handle simultaneous FOR-IN UPDATE-RETURNING loops?