Thanks for the response Doug!

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.

Thanks,

Neal



At 03:07 PM 1/9/2006, you wrote:

Neal Whitley wrote:
I have Nutch 0.7 up and running however when I search there are a number times where Nutch finds more total matching pages than in returns on a search. Example: On a search Nutch finds 81 matching pages but only returns 46 in a result set.
Hits *46-46* (out of about 81 total matching pages):

Nutch, like Yahoo! and Google, only shows two hits from a site. Are there "more from site" links with some hits? There should be. Is there a "show all hits" link at the bottom of the last page? There should be.

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

Reply via email to