This project has moved. For the latest updates, please go here.


Topics: User Forum
Oct 19, 2010 at 1:20 AM

How do I make use of the TagMode.Boolean option in PhotoSearchOptions?

I've tried setting PhotoSearchOptions.TagMode to TagModeBoolean, then PhotoSearchOptions.TagMode="-notthis", but it still returns photos with the tag "notthis". What is the correct way to use this option?

Thanks in advance.

Oct 19, 2010 at 8:02 AM

I think that boolean searches don't work where there is only 1 negative term. You have to have at least one positive term for this to work correctly.


Oct 19, 2010 at 9:02 PM

Hi Sam,

Thanks for that. Yes, adding positive terms to Tags worked. However, if I also have PhotoSearchOptions.Text set, it seems like PhotoSearchOptions.Tags is ignored. Is this the expected behaviour?

Having said that, I suspect Flickr API searches either tags or text, going by the Flickr website's own advance search options - though it's not exactly specified here. Is that right?

What I am trying to do is,

  1. Search for my search term in the photo's title and description
  2. But don't return photo if it's tagged with the negative keyword

Short of getting the Photos from 1. then traversing through each's tags looking for the negative keywords, would you know of any other way of doing this?

Thanks again,


Oct 20, 2010 at 7:37 AM

I think doing search one and then traversing the tags is probably the only way to do this I'm afraid.


Oct 20, 2010 at 9:55 PM

So it seems. Thanks for confirming my suspicions, Sam :)