I have been using search by tags in our gallery for quite a while.  It has 
always been flaky, but now seems very broken due to 
AlbumFeed.getTotalResults() returning incorrect results.

This is how I am performing the search.  I have tried leaving off 
start-index and / or max-results.  This will sometimes change 
getTotalResults, but it is still incorrect.  *I can check the correct 
number of photos by using the picasa web interface.*

// This particular search should return 2685 for totalResults, but 
totalResults is only 218
String searchURL = 
https://picasaweb.google.com/data/feed/api/user/118157739053519600454?v=2&kind=photo&tag=2013&start-index=1&max-results=12
Query query = new Query(new URL(searchURL));
AlbumFeed searchResultsFeed = picasaService.query(query, AlbumFeed.class);
int numResults = searchResultsFeed.getTotalResults();

// Picasa web interface search on the same tag returns a correct totall of 
2685 (NOTE: this URL only seems to work when I am logged in.  I couldn't 
find a public equivalent)
https://picasaweb.google.com/lh/view?uname=118157739053519600454&isOwner=true&tags=2013&psc=S

Is this working for anyone else?  What I am trying to do is a simple basic 
function of the API.  This just seems broken to me, unless I am doing 
something wrong.

Thanks in advance for any advice!

--Brian.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to