Cannot jump to next page

Post Reply
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Cannot jump to next page

Post by edev »

Hi,

I just discovered that the function <pageno export> doesn't jump to the next page once it has reached the end (20th page). I'm using search script 5.0.2, and for various reasons I won't be able to upgrade to the most recent version. The problem is when I reach the last page, the 20th, and click "next", it returns an empty page. There are definitely more than 200 results returned for the queries and jump URL looks fine. This is the function:

<!------------------------- Search Result Summary ----------------------->

<!-- display list of possible pages to jump to -->
<a name=pageno export>

<if $indexcount gt $SSc_hitsperpage><!-- more than one page of hits -->
<$pages= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20>
<$i=0>
<$t=$next><!-- preserve $next -->

<loop $pages>
<if $i ge $indexcount><!-- hit end, stop numbering -->
<break>
</if>
<$j=($i+1)>
<if $j eq $start><!-- no hyperlink for the page we're on -->
<b>$pages</b>
<else>
<!-- <A class="pageno" HREF="$url/$urlq$mltvar&jump=$i">$pages</A> -->
<A class="pageno" HREF="$url/$urlcmd$urlext$urlq$mltvar&jump=$i$uavar">$pages</A>
</if>
<$i=($i+$SSc_hitsperpage)><!-- increment by number of hits per page -->
</loop>
<$next=$t><!-- restore $next -->
</if>
<!-- </HTML> -->

This URL returns the results 190-200:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=190

but when hit "next" this URL returns nothing:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=200
Does anyone have an idea why?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Cannot jump to next page

Post by mark »

Check your likeprows setting. It's controlled by the "Ranked Rows" setting under search settings.
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

Cannot jump to next page

Post by edev »

Checked it and set likeprows to -1, thanks so much!
Post Reply