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, ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

mikek on twitter