Google Groups Home
Help | Sign in
New Records??
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
expresscoder  
View profile
 More options May 2, 3:31 pm
From: expresscoder <expressco...@expresscoding.com>
Date: Fri, 2 May 2008 12:31:26 -0700 (PDT)
Local: Fri, May 2 2008 3:31 pm
Subject: New Records??
ok...  I am running a generic Zend GBase PHP script that queries GBase
properties.  As far as I can tell, I may only retrieve 250 records per
query and set the initial number to start the query results from <=
1000.  If I set the initial number to begin the retrieval to 1001,
then no records are retrieved.

So, can I assume the first 100 records being returned are the 1000
newest records??

How can I tell how many new posts are being made so I know how many
records should be returned??  Right now I am importing the records
into MySql and querying for duplicates before adding the record.

Thanks for any advice...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric (Google)  
View profile
 More options May 5, 7:03 pm
From: "Eric (Google)" <api.e...@google.com>
Date: Mon, 5 May 2008 16:03:15 -0700 (PDT)
Local: Mon, May 5 2008 7:03 pm
Subject: Re: New Records??
Hi expresscoder,

I assume you are using the snippets feed?  By default items are sorted
by relevancy, so you cannot assume you are seeing the 1000 latest
items.  Try adding the orderby=modification_time parameter.

I'm not sure if I understand your second question.  Are you filtering
out items with similar titles?

Hope this helps,

Eric

On May 2, 12:31 pm, expresscoder <expressco...@expresscoding.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
expresscoder  
View profile
 More options May 9, 2:03 pm
From: expresscoder <expressco...@expresscoding.com>
Date: Fri, 9 May 2008 11:03:38 -0700 (PDT)
Local: Fri, May 9 2008 2:03 pm
Subject: Re: New Records??
I discovered the orderby=modification_time and that is helpful.  Keep
in mind, I am using PHP and the Zend framework.  I have narrowed it
down to the Zend framework allows you to specify a setPublishedMin and
\or a setPublishedMax using a date as a parameter.  When I try to use
these, my posting fails.  I am pretty certain GBase supports this and
the problem might be in the Zend framework (or my understanding of
it)...  If I could set these dates, I would be able to accomplish what
I need to do!

I am querying a GBase snippet feed trying to use the setPublishedMin
and setPublishedMax.  Whenever I use either of these, I receive an:
Fatal error: Exception thrown without a stack frame in Unknown on line
0

$service = new Zend_Gdata_Gbase();
$query = $service->newSnippetQuery();

// Everything works until I try one of these:
$query->setPublishedMin('2008-04');
// or if I use:
$dateMin = new Zend_Date('2008-01-04', null, 'en_US');
$query->setPublishedMin($dateMin);

$query->SetBq('[Item Type:Housing]');
$query->setMaxResults('250');
$query->setOrderBy('modification_time');
$query->setSortOrder('ascending');
$feed = $service->retrieveAllEntriesForFeed($service-

>getFeed($query));

foreach ($feed->entries as $entry) {
//...

}

On May 5, 6:03 pm, "Eric (Google)" <api.e...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric (Google)  
View profile
 More options May 10, 4:04 pm
From: "Eric (Google)" <api.e...@google.com>
Date: Sat, 10 May 2008 13:04:37 -0700 (PDT)
Local: Sat, May 10 2008 4:04 pm
Subject: Re: New Records??
Looks like your understanding of the PHP client library is fine.  The
Base API supports most of the Google Data parameters
(http://code.google.com/apis/gdata/reference.html#Queries) but it
doesn't support published-max or published-min.
Run http://www.google.com/base/feeds/snippets?published-min=2005-05-05
in your browser to verify.

Here's the list of parameters Base supports:
http://code.google.com/apis/base/reference.html#Parameters

Thanks,

Eric

On May 9, 11:03 am, expresscoder <expressco...@expresscoding.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google