Does AND work in Tag/Title searches

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!

Comments

  • acrylian Administrator, Developer
    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?
  • Can I use say, photo&blue where photo is a tag in blue is in the title?
  • acrylian Administrator, Developer
    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.
  • 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!
  • 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
  • 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`.)
Sign In or Register to comment.