Member
Member
finalrune   2010-02-23, 18:41
#1

For: http://www.revisionenergy.com/solar-projects/ (ZP 2.8)

I've tagged my photos in such a way that I want search results based on compound tags. E.g. results of the tags "solar hot water" AND "residential" ... "solar power" AND "commercial" and so on.

Unfortunately I see with the boolean search neither the 'AND' nor the 'OR' query behave how I want.

I can do "residential" OR "solar power," which returns results I do not want, and if I do "residential" AND "solar power" there are no search results returned (as search is looking for "residential solar power" and not the two phrases independent of each other in the tags).

Is there any way to do a search that uses two or more tags to limit a set of results?

Based on threads such as this: http://www.zenphoto.org/support/topic.php?id=5425 I believe this feature does not exist, but figured I'd ask.

The alternative, I supposed, is to explicit create a tag for each variation I could imagine but it seems like a less elegant solution.

Member
Member
sbillard   2010-02-23, 19:14
#2

Well, AND means the intersection of the searches. So you should get only images that have both phrases. The search does not join the text of the search, it creates the intersection of the result of the searches.

There is no limit on the results of the search, it will return what it finds. But of course your search.php script can ignore all but the first n results should you wish to do so.

BTW, if I search your site for just "solar power" I get no matches, so that would be a good explaination of why you get no matches for "solar power" AND "residential".

Member
Member
finalrune   2010-02-23, 21:26
#3

Thanks for the quick response, sbillard. Hot damn, I figured it out!

I was getting confused in the use of Boolean operators (AND, OR, etc) with the use of phrases, e.g. typing in "residential solar power" and expecting it to output "residential AND solar power"

Thanks again,
Fred

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.