Hi Jack,
thanks for your code :-)
I changed it a little bit:
- the current page stays in the middle of the list of pages, if possible. like a rolling window
- to the left and right are dots, if there are more results
- it handles the "hits.totalIsExact" correct and offer a hint to the user by showing dots.
You can see a running version (in german only :-( at
http://www.netluchs.de/netluchs/search.jsp?query=hamburg&start=140&hitsPerPage=20&hitsPerSite=1&clustering=&debug=
It might be a little bit slow - it's just a prototype at an old PIII with not enough RAM :-(
If anybody is interested in the jsp-page: just drop me a mail. If this is of public interest, I would gladly add the code to nutch.
Greetings from Germany
Michael
Hi Marco
I thinks this is what you want. Still some known bugs there, but hope it will helps or bright you;)
Regards /Jack
On Apr 7, 2005 8:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi!
Does anybody know a code to insert into search.jsp to show the result pages list the way that Google does? I mean: instead of showing just "Next" button, it could show: "Previous 1 2 3 4 5 6 7 8 9 10 Next" and so on "Previous 11 12 13 14 15 16 17 18 19 20 21 Next".
Thanks, Marco
-- Michael Nebel Internet: http://www.netluchs.de
