--- trunk/pgswish.c 2005/02/19 00:59:08 9 +++ trunk/pgswish.c 2005/02/19 11:39:11 10 @@ -10,6 +10,8 @@ * NOTES: * - clear structures with memset to support hash indexes (who whould like * to create hash index on table returned from function?) + * - number of returned rows is set by PostgreSQL evaluator, see: + * http://archives.postgresql.org/pgsql-hackers/2005-02/msg00546.php * * Based on: * - C example from PostgreSQL documentation (BSD licence) @@ -79,7 +81,7 @@ if ( SwishError( swish_handle ) ) error_or_abort( swish_handle ); /* set ranking scheme. default is 0 */ - SwishRankScheme( swish_handle, 1 ); + SwishRankScheme( swish_handle, 0 ); /* Check for errors after every call */ if ( SwishError( swish_handle ) ) @@ -87,9 +89,7 @@ elog(INFO, "pgswish: SwishQuery(%s)", query); /* Here's a short-cut to searching that creates a search object and searches at the same time */ -elog(INFO,"## FIXME: SwishQuery kills back-end?"); results = SwishQuery( swish_handle, query); -elog(INFO,"## FIXME: no..."); if ( SwishError( swish_handle ) ) error_or_abort( swish_handle ); /* total number of tuples to be returned */