flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

Show list of number of pages #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We could show a list of the number of pages of results available and the
current page:

<Prev ..5 6 [7] 8 9 .. Next>

or something similar. Also the ability to jump to a specific page? 

Original issue reported on code.google.com by charliej...@gmail.com on 21 Dec 2007 at 10:04

GoogleCodeExporter commented 9 years ago
The difficulty with that is that we often don't know the number of pages.  We 
could
add a "checkatleast" parameter so that we always know the number of pages if 
it's
under 10, say.  But unless we set checkatleast to the database size, there's 
always
the possibility that direct links to pages won't actually work.

Probably a reasonable compromise is to have direct links to the first 10 pages 
if
they exist, and to have direct links to earlier pages, and to have direct links 
to
the next page (if there is one).  So, if we're viewing page 5, and we know 
there are
more than 100 results we'd have links to pages 1 - 10; if we're viewing page 
15, and
we know there are more results, but only have an estimate as to how many, we'd 
have
links to pages 1-16.

Original comment by boulton.rj@gmail.com on 21 Dec 2007 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by charliej...@gmail.com on 27 Aug 2009 at 1:20