7 messages in com.googlegroups.google-base-data-apiRe: Ranking language Questions| Subject: | Re: Ranking language Questions![]() |
|---|---|
| From: | Jeff S (j....@google.com) |
| Date: | 09/24/2007 04:13:29 PM |
| List: | com.googlegroups.google-base-data-api |
Hello Anton,
Great questions, I've responded to them point by point. Apologies for not getting back to you sooner.
On Sep 13, 12:44 am, "Anton S." <russ...@gmail.com> wrote:
Hi!
we are creating a website that will use Google Base Data API to search items. We'd like to use our own criteriato rank items, so Ranking Language looks as good way to do that. The documentation is great, but there are several questions that seem to have no answer in current docs:
1) Can we somehow get Google relevancy of current item to add it as ranking criteria among other attributes?
Hmmm, I don't really think so. The Google relevancy is the default
sorting, but I don't think you can reference it in a sorting
expression. This sounds like an interesting idea. Could you add it to
this issue/feature request tracker?
http://code.google.com/p/gdata-issues/issues/list
2) How can we get these 5-star ratings like in Google Products? Can we get the number of current item reviews?
Right now the ranking information is not available through the API. I like this idea, and I'd like to get back to you about it if something develops. Please use the issue tracker link above.
3) Is it possible to create sub-queries in query?
The answer to this question depends on what you mean by a sub query. The expression language is not like traditional SQL syntax, but you can put quite a bit of logic into your queries. Here is an example http://code.google.com/apis/base/ranking-lang-spec.html#resolving
Crowding expressions can also add logic to get a specific number of results which match different criteria. Here's an example of crowding http://code.google.com/apis/base/ranking-lang-spec.html#crowding
I don't think that I would call these sub-queries, but they are designed to accomplish a similar end goal. What was the use that you had in mind?
Thanks in advance for any answers, guys.
Thank you,
Jeff




