Incorrect Pagination?

2 views
Skip to first unread message

Welles1941

unread,
Feb 7, 2008, 2:22:10 PM2/7/08
to Google AJAX API
Hi,

I'm using the AJAX Search API to make a site search and I noticed
something odd about the pagination. Sometimes the number of pages is
correct and other times it isn't.

To see what I mean, try going to the Raw Searchers Demo (http://
www.google.com/uds/samples/apidocs/raw-searchers.html) and entering
something like: "site:tropicana.com peach". It comes up with 4 page
links at the bottom, even though there are only 2. When you click on
any of the page links other than 1, links number 3 and 4 disappear. If
you go to the first page of results they reappear! Very confusing!

I think I've figured out what's going on, but I don't know if there is
a way to fix it. When I test this on google.com, it comes up with 5
results and after that it says that similar entries have been omitted.
If you click on the link to include them, it comes up with 151. These
are the same values I get from the estimatedResultCount property of
the cursor in the API. estimatedResultCount is 151 on the first page,
but as soon as I click on one of the other pages, it changes to 5.

So it looks like the number of pages is calculated by the total number
of results, but what is being returned is actually a smaller number
due to the similar entries being omitted. Is there any way to correct
this?

Thanks,
Bill

jgeerdes [AJAX APIs "Guru"]

unread,
Feb 7, 2008, 3:31:08 PM2/7/08
to Google AJAX API
Very good observation! I think this should be the first bug filed on
the Bug Report page.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
jgee...@mchsi.com

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

jgeerdes [AJAX APIs "Guru"]

unread,
Feb 7, 2008, 3:34:58 PM2/7/08
to Google AJAX API

Ben Lisbakken

unread,
Feb 7, 2008, 3:36:33 PM2/7/08
to Google AJAX API
Bill --

Thanks for posting this. Like Jeremy said, could you post it to our
Bug Report page? Here's a link:
http://groups.google.com/group/Google-AJAX-Search-API/web/known-possible-api-bugs

We'll check it out and try to fix it as soon as we can.

Thanks,
Ben

On Feb 7, 12:31 pm, "jgeerdes [AJAX APIs \"Guru\"]"
<jgeer...@mchsi.com> wrote:
> Very good observation! I think this should be the first bug filed on
> the Bug Report page.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.com
> jgeer...@mchsi.com

Welles1941

unread,
Feb 7, 2008, 3:39:42 PM2/7/08
to Google AJAX API
Thanks. I'll do that right now.

-Bill

On Feb 7, 3:36 pm, Ben Lisbakken <lisba...@gmail.com> wrote:
> Bill --
>
> Thanks for posting this. Like Jeremy said, could you post it to our
> Bug Report page? Here's a link:http://groups.google.com/group/Google-AJAX-Search-API/web/known-possi...
Reply all
Reply to author
Forward
0 new messages