You can now search by multiple tags in my photo gallery! (Since spaces are usually allowed in tags, the whole search was previously treated as one tag.) If you’d like to add this feature to your own Gallery2 installation, replace TagsSearch.class with the file in this zip:



January 7th, 2010 at 4:17 pm
Matthew, I found your site while looking for a solution to multi-tag searches in Gallery2. I’ve copied your code into my instance of Gallery and don’t seem to get the results I expected. I then tried searching your gallery using multiple search terms and I don’t see the results I expected either. I tried searching for “kayak sports”, expecting to get back images that were tagged with both kayak and sports. Is this how your modification is intended to work? Am I doing something incorrectly?
January 8th, 2010 at 6:12 pm
Scampy, the multi-tag search should display results starting with those matching the most words. I’m not sure why it doesn’t work for “kayak sports”; other searches such as “matthew snowboard” sort correctly.