Based on everything I’ve read in the forums, you can’t query by date
because it’s not indexed. It either doesn’t work (no records), or you
can’t trust the results. I’d like to know from Google if that’s true,
and if so, when will it be fixed... Thanks.
The only around is to perform your normal search with a sort by
modification_time.
// execute the query
query.AscendingOrder = false;
query.OrderBy = "modification_time";
query.GoogleBaseQuery = "[item type: products]";
GBaseFeed feed = service.Query(query);
On Jan 26, 7:53 pm, Dennis Whipstock <[email protected]> wrote:
> Try date modified instead. Not saying that will work, but it might.
>
>
>
> On Mon, Jan 26, 2009 at 7:50 PM, steve <[email protected]> wrote:
>
> > I can't search on a date range. I get zero records returned from my
> > query. I've read many of the previous posts on this topic.
>
> > What am I doing wrong?
>
> > My query looks like this:
>
> > query.GoogleBaseQuery = "[item type:products]
> > [published date:2009-01-24]";
> > GBaseFeed feed = service.Query(query);- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---