Avoiding empty queries in tsearch

From: "Doug Cole" <dougcole(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Avoiding empty queries in tsearch
Date: 2007-01-14 23:41:12
Message-ID: 7b8d80330701141541s745e08edle079c4e403c5f06e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am having trouble with to_tsquery when the query is all stop words.
Rather than return everything as a match, it returns nothing with the
notice:

NOTICE: Query contains only stopword(s) or doesn't contain lexem(s), ignored

What is the best way to check for this, I was hoping to be able to
check if the resulting tsquery was empty or null, but haven't found a
way. Any advice?
Thanks for your help,
Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message roopa perumalraja 2007-01-15 02:39:04 Backup the part of postgres database
Previous Message ksherlock 2007-01-14 23:26:03 Re: like query backslash