Start parameter of 21 AND 22 return different results. See below
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=cars&rsz=small&lr=lang_en&hl=en&start=21
Results for start 21:
Item 1: M Automotive
Item 2: San Francisco Auto Sport
Item 3: Enterprise Rent-A-Car - SF-Mission St
Item 4: Tom See S
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=cars&rsz=small&lr=lang_en&hl=en&start=22
Results for start 22:
Item 1: San Francisco Auto Sport
Item 2: Enterprise Rent-A-Car - SF-Mission St
Item 3: Tom See S
Item 4: KSH Automotive
When you compare the first set of results to the second set of results
you can see that the second search has removed the first item and
added a new item to the bottom of its results. This is the expected
and correct behaviour.
Therefore the start paramerter does seem to work correctly and return
different result sets.
Anyway forget about that for now.
I an not bothered exactly how the code works or why you can not get
the last 8 results.
My real gripe is:
I think that we should be able to retrieve the last 8 items out of the
possible 32 items, whether we are using a small result set or a large
result set.
Even when doing a web search (that returns 64 results) instead of a
local search, when requesting a small set of results, you are unable
to access the last 8 items.
If this behaviour is by design then is behaviour is a limitation and
should be documented in the Google AJAX Search API documentation.
E.g. Here
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_fonje_args
What do you think about my statement about documentation?
Regards,
Mark.
On Sep 14, 12:21 pm, Jeremy Geerdes <
jrgeer...@gmail.com> wrote:
> Well, we were both right. After further testing, I've discovered that
> you can provide start values that are not multiples of four, but they
> don't always return different results. For instance, start values of
> 21 and 22 seem to return the same resultsets. In other words, there is
> apparently some flexibility in that you can move 1 result in either
> direction of a multiple of 4 and get results, but not 2.
>
> However, there is also another limit at work here. The API is designed
> to return either 4 results or 8. In either case, though, the
> LocalSearch is designed to return only four different pages, for a
> maximum result total of 32. Apparently, it assumes that if you're
> going for 32 results, you're using the larger result set, and so it
> does not accept start values greater than 32 - 8, or 24.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://
jgeerdes.wordpress.com
>
jgeer...@mchsi.com
>
> Unless otherwise noted, any price quotes contained within this
> communication are given in US dollars.
>
> If you're in the Des Moines, IA, area, check out Debra Heights
> Wesleyan Church!
>
> And check out my blog, Adventures in Web Development, athttp://
jgeerdes.blogspot.com
> !
>
> On Sep 14, 2009, at 4:50 AM, MarkOG wrote:
>
>
>
> > Hello Jeremy,
>
> > Thanks for your suggestion but I do not think that is correct.
>
> > Start Parameter can be anything. Try the 2 urls below. They return the
> > expected results.
>
> >
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=cars&rs...
>
> >
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=cars&rs...
>
> > The point I am making is that once you go over 24 there are no results
> > returned.
>
> > E.g.
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=cars&rs...