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