I am mikek's Blog

The personal blog of Mike Karthauser, who you may know from Brightstorm Limited or the internet.

Ordering results on google base

By default, results returned by the Google Base data API are sorted according to relevancy. You can change the order by using the orderby parameter. Possible values for this parameter can be found here:

http://code.google.com/apis/base/snippets-feed.html#Parameters

I’m particularly interested in returning the lowest price first which can be achieved by adding the following:
&orderby=price(float%20GBP)

to your base query.

to change sort order,

&sortorder=descending|descending

For more information about format and implementation
http://code.google.com/apis/base/samples/javascript/javascript-sample-autosmasher.html

Advertisements

Filed under: development, ,

what's hot

Flickr Photos

Sponsor Mike run the Bath Half marathon

mikek on twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.