Multi-Tag Search for Gallery2

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:

Download Multi-Tag Search for Gallery2

Share |

2 Responses to “Multi-Tag Search for Gallery2”

  1. Scrampy Says:

    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?

  2. Matthew Says:

    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.

Leave a Reply

Comment Policy