Re: [htdig] Limit the Number of Hits

Subject: Re: [htdig] Limit the Number of Hits
From: Geoff Hutchison (
Date: Wed Jun 28 2000 - 06:29:00 PDT

At 10:37 AM +0100 6/28/00, Abdul Jabbar wrote:
>500, and only display the first 500 it finds?. This would speed up the
>search right?. If there is a way to do this and i implement it on to my
>htdig.conf file would i have to reindex the site? . Thanks ever so much for
>your help.

Alas, there isn't a good way of doing this right now in htsearch. You
can certainly cut the number of hits, but you want it cut *after* the
results are sorted. Because htsearch currently sorts all results
before displaying, cutting the number of hits won't help. (Yes, this
is an extremely naive method--it would be better to sort only the top
X number of hits that need to be displayed.)

This is an optimization that will be better served at some point in
the 3.2 code (which also still does a full sort).

But don't worry, it's definitely on my "hit list" to fix!

-Geoff Hutchison
Williams Students Online

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

This archive was generated by hypermail 2b28 : Wed Jun 28 2000 - 03:53:39 PDT