Member
Member
quiraang   2009-06-19, 12:04
#1

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!

Administrator
Administrator
acrylian   2009-06-19, 12:28
#2

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?

Member
Member
quiraang   2009-06-19, 12:32
#3

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

Administrator
Administrator
acrylian   2009-06-19, 12:43
#4

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.

Member
Member
quiraang   2009-06-19, 13:15
#5

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!

Member
Member
quiraang   2009-06-19, 14:44
#6

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

Member
Member
sbillard   2009-06-22, 04:40
#7

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.)

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