Wiki Link: [discussion:73506]
How to perform "any of these words" search through the API?  

Tags: User Forum

Oct 29 at 5:14 PM

I noticed that de Flickr API searches with "all of these words" by default.

How can I perform a text search with the "any of these words" option throught the Flickr API?

Used code:

Flickr flickr = new Flickr("dev api key");
PhotoSearchOptions searchOptions = new PhotoSearchOptions();
searchOptions.SafeSearch = SafetyLevel.Safe;
searchOptions.Text = "list of space seperated words";
searchOptions.SortOrder = PhotoSearchSortOrder.Relevance;
Photos page1ofresults = flickr.PhotosSearch(searchOptions);

Coordinator
Oct 29 at 5:20 PM
Edited Oct 29 at 5:21 PM
The following seems to work: 

searchOptions.Text = "microsoft OR french OR colorful";

If you look carefully at the URL for the Flickr web site search then this is exactly what they do.

Oct 29 at 8:36 PM

Indead, this works. Thank you.


Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987