2 messages in com.googlegroups.google-base-data-apiRe: Bug: operators <, <=, >, >=, and ...
FromSent OnAttachments
Matthias27 Jan 2008 17:33 
Jeff S28 Jan 2008 16:46 
Subject:Re: Bug: operators <, <=, >, >=, and == no longer work for queries on (numeric) attributes?
From:Jeff S (j.@google.com)
Date:01/28/2008 04:46:32 PM
List:com.googlegroups.google-base-data-api

Hi Matthias,

I think the problem is the need for URL escaping. These special characters should be escaped when you actually GET the URL. For example, the following will fail, but the second query will succeed.

http://www.google.com/base/feeds/snippets?bq=digital+camera[megapixel>=3.0][price<=500.0USD]

http://www.google.com/base/feeds/snippets?bq=digital+camera[megapixel%3E%3D3.0][price%3C%3D500.0USD]

Does this fix the errors?

Cheers,

Jeff

On Jan 27, 5:34 pm, Matthias <matt@gmail.com> wrote:

For attribute queries, the documentation says: "For numeric attributes, we can use the operators <, <=, >, >=, and == to specify constraints on their values, so a constraint on the attribute price looks like this: [price <= 150.0]". This however does not seem to work any longer, for quite a while now. You can check this on the API demo page - even Google's own sample query "snippets?bq=digital camera [megapixel >= 3.0]" fails with error 400 Bad Request. The only operator that works is ":".