Menu

#71 Errors when searching by dates

open
None
5
2010-05-18
2010-05-10
Pere Toran
No

When I try to perform a search bounded by dates (doesn't matter taken or uploaded) I usually get no results or wrong results.
For example, min_taken_date=2008-05-06 and max_taken_date=2009-05-06 returns no results (the same using the flickr official API http://www.flickr.com/services/api/explore/\).
I've looked at how Flickr perform this searches and I've realized that they have changed the way they do that. They use the parameter d (I guess of date) with the value taken-20080506-2009-05-06 instead of min_taken_date and max_taken_date. So I guess that flickrj API should be adapted to use this new parameter "d".

Am I right?

Discussion

  • Martin Goebel

    Martin Goebel - 2010-05-18

    min_taken_date take timestamps as argument and not yyyy-mm-dd. I tried that at api/explore and timestamps are working there. That is done right in flickrj.
    But the parameter d is not recognized at the REST-interface. That seems to be a construct used only at the website.

    If something's not working, you could share some code, to look at it.

     
  • Martin Goebel

    Martin Goebel - 2010-05-18
    • assigned_to: nobody --> x-mago
     
  • Pere Toran

    Pere Toran - 2010-05-18

    I've also tried it with unix timestamps.
    Just open the explore http://www.flickr.com/services/api/explore/?method=flickr.photos.search and try to search by min_taken_date = 1210032000 and max_taken_date = 1241568000 (which corresponds to the date range that I put in the original post).
    I guess that the issue is related with some limitation on the maxium number of results that a query could return because if you try to do that search http://www.flickr.com/search/?q=&d=taken--20100518 it also doesn't return any result, but if you try to request photos before 2007-05-18 it DOES return results (http://www.flickr.com/search/?q=&d=taken--20070518).

     

Log in to post a comment.

MongoDB Logo MongoDB