Re: Avoiding empty queries in tsearch

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Doug Cole <doug(at)shackprices(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Avoiding empty queries in tsearch
Date: 2007-01-15 16:30:11
Message-ID: 45ABAC13.6090907@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

contrib_regression=# select numnode( plainto_tsquery('the any') );
NOTICE: query contains only stopword(s) or doesn't contain lexeme(s), ignored
numnode
---------
0
(1 row)

contrib_regression=# select numnode( plainto_tsquery('the table') );
numnode
---------
1
(1 row)

contrib_regression=# select numnode( plainto_tsquery('long table') );
numnode
---------
3
(1 row)

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ardian Xharra 2007-01-15 16:36:16 Re: Why the data changes it's value by itself!
Previous Message Tom Lane 2007-01-15 16:27:42 Re: Unpredicatable behavior of volatile functions used