No, Hits below I understand to be all hits resulting from the search. The
-m parameter on the command line is the maximum number of hits to
return. If one could set maxhits (-m), that would be an upper bound for
Hits. I am trying to find a way, using cgi and SWISH::API, to limit the
number of hits as I did in earlier versions. I believe I could in this
version as well, if I used the forking version of a perl script, but that
has problems of its own.
At 08:51 PM 9/2/2004, you wrote:
>Are you thinking of:
>$results->SeekResult( $position );
> Seeks to the position specified in the result list. Zero is the
> first position and $results->Hits-1 is the last position.
> past the end of results sets a non-critical error condition.
> Useful for seeking to a specific "page" of results.
>Del Kimbler wrote on 9/2/04 7:19 PM:
> > Recently upgraded from 2.2 and modified my old perl script to use SWISH
> > API. All works , except that I can't find out how to use the maxhits
> > parameter. We use this in several web scripts. I have looked through the
> > documentation and searched the archives, but find no mention in this
> > context. I note that it still works in command-line execution, but can't
> > find how to set this property (is it a property of the handle object,
> > search object?) using API.
> > Del
> > D. L. Kimbler, Ph.D., P.E.
> > Professor of Industrial Engineering
> > Clemson University
> > (864)656-5645
>Peter Karman 651-605-9009 email@example.com
D. L. Kimbler, Ph.D., P.E.
Professor of Industrial Engineering
Received on Thu Sep 2 18:06:22 2004