ZenphotoCMS Forum
Does AND work in Tag/Title searches - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Does AND work in Tag/Title searches (/thread-5356.html)



Does AND work in Tag/Title searches - quiraang - 2009-06-19

I read a post reply from Stephen a while back where he said that the AND operator did not work when searching keywords in Tags - this seems to be the case in v1.2.2 and also it seems to be the case between Tags and Title?

Has this been fixed in 1.2.5? (yes I know I should upgrade!)or if not any plans to do so.

I'm building a custom search form with checkboxes and dropdowns for to search across specific values in Tags and Titles and I really would like to use an AND!




Does AND work in Tag/Title searches - acrylian - 2009-06-19

You can use tag1&tag2 in the searchfield to find an image that has both tags. Does that answer your question? Otherwise you will have to wait until next week for an more qualified answer as sbillard is away for a few days.

Why don't you try a test install meanwhile?




Does AND work in Tag/Title searches - quiraang - 2009-06-19

Can I use say, photo&blue where photo is a tag in blue is in the title?




Does AND work in Tag/Title searches - acrylian - 2009-06-19

Given that you set the search fields to title and tags only this will get the items that either have photo or blue either as a tag or title.

Please consider to try yourself, I just did the same as search is really sbillard's resort.




Does AND work in Tag/Title searches - quiraang - 2009-06-19

Hmmm, photo|blue works, but photo&blue doesn't. I'll try a test upgrade to 1.2.5. Thanks for the advice, but I might be back!




Does AND work in Tag/Title searches - quiraang - 2009-06-19

For information I've installed 1.2.5 and the search works - sort of. If I use photo AND blue it works, but if I use photo&blue everything after & is ignored




Does AND work in Tag/Title searches - sbillard - 2009-06-22

If you are passing the search parameters as a query string, then you must use the HTML entitiy & in place of the & as the latter will be treated as a query separator. (Of course, you can just use AND.)