According to [EMAIL PROTECTED]:
>  Wondering if it's possible to get the number of pages searched?
> 
> That is, given restrictions I would like the number of pages ht://Dig
> searched to determine if a match existed.
> 
> So, if no restrictions I'd like to see 'total number of pages indexed'
> and with restrictions, 'total number of pages indexed' less restrictions.
> 
> I didn't see a variable for this in the templates document.
> We had this capability with our previous search engine however it worked
> completely different than htdig (verity). Possible?

Right now, I don't think this information is maintained anywhere, which
is why it's not available in the template variables.  It wouldn't be too
difficult to get htdig/htmerge/htpurge to maintain the total document
count, but the "less restrictions" part would take some more work.
Essentially, you'd need to traverse the the whole database to see which
documents fit or don't fit the current set of restrictions, so that you
can get an updated count.

The problem is htsearch searches the word database first, getting a list
of all matching documents, and then pares down that list based on the
current "restrict" and "exclude" input parameters.  So, in this way, it
never does know about documents that fit the restrictions but don't contain
any matching words - they never come to htsearch's attention during a
search.  To do it the other way around, so you could get the total you
want when restrictions apply, would add extra overhead to the search.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to