RE: [htdig] Limit the Number of Hits


Subject: RE: [htdig] Limit the Number of Hits
From: Geoff Hutchison (ghutchis@wso.williams.edu)
Date: Wed Jun 28 2000 - 08:16:17 PDT


On Wed, 28 Jun 2000, Abdul Jabbar wrote:

> What if i was to use the server_max_docs wouldnt that work, or is that just
> used for digging. What sort command could i use then, to sort for example
> the first 100 hits?.

This is only used for digging. (If you look at the documentation, it
indicates what programs use each attribute.)

There's no external program to sort results like this. Internally,
htsearch uses the 'qsort' algorithm. It would probably be better to "sort"
the results using a heap of the same size as the desired number of
results. Then you could quickly browse through the results and pick out
the X highest scores, for example.

I've usually described this process as a "partial sort" before.

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Wed Jun 28 2000 - 05:31:15 PDT