Avoiding empty queries in tsearch

Поиск
Список
Период
Сортировка
От Doug Cole
Тема Avoiding empty queries in tsearch
Дата
Msg-id 7b8d80330701141229p7475884bm637cf3d50111e35b@mail.gmail.com
обсуждение исходный текст
Ответы Re: Avoiding empty queries in tsearch  (Teodor Sigaev <teodor@sigaev.ru>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Sim Zacks
Дата:
Сообщение: like query backslash
Следующее
От: ksherlock@gmail.com
Дата:
Сообщение: Re: like query backslash