Neal Whitley wrote:
Now here's another question.
How can I obtain the "exact" number of searches being "displayed" on the
screen. I have been fishing around and can not find a variable being
output to the page with this date.
In my example below 81 total matches were found. But because of the
grouping in the initial result set (hitsPerSite=2) it is showing only 46
listings, some of which are grouped under "more from site". This is
causing a slight problem with pagination because the "pager" thinks
there are 81 matches and it's "extending" itself for a range of 81, when
we really want a value of 46 when "hitsPerSite=2".
Perhaps something like this on search.jsp:
if (hitsPerSite == 0) {
//grab the "full" result set
maxPages = (int)hits.getTotal();
}
else {
//grab the "short" result set
maxPages = ???some variable OR some math here to obtain value???;
}
It seems to me this is not a problem when using the "default Next"
button to move from page to page. But with any sort of pagination when
used with "hitsPerSite" we need to know what we are actually viewing on
the screen.
The site-deduping is performed at query time. If you ask for the top N
hits without site duplication then Nutch finds more than N hits and
removes those from duplicate sites dynamically. So unless you make N
very large, we don't know the total number of site-de-duplicated hits.
Doug
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general