Advanced Searches

thefoxbrain

Joined: 2010-01-12
Posts: 28
Posted: Tue, 2010-12-21 14:50

Hello

I think Gallery 3 is an excellent product but im not sure it can handle what i what to do at present. I would be looking to use it to show and potentially sell images from sporting events where its important the buyer can find their own image fast. I was thinking i would tag each photo according to that competitors race number but is there a way to limit the search to just one album? If i have 10 races on the system i obviously dont want 10 results coming up when someone searches for their number. If i use 2 tags then the current search works but that leaves too much room for user error when entering the search criteria.

Are there any plans to expand the search options? Ive seen this functionality in Gallery 2 although i would really like this in the new and improved G3. If not limited by albums how about a dropdown list of set tags which is then used in combination with a user entered value?

Thanks in advance

 
thefoxbrain

Joined: 2010-01-12
Posts: 28
Posted: Wed, 2010-12-22 09:38

I wonder if this would be possible via a module that searches against set EXIF tags? This could work in tandem with the standard search to filter down search results. It might mean some more work in processing the photos but would give the desired result

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2011-01-11 01:55

The search module does search the EXIF info, so you could put tags there or in IPTC and it should work. Right now there's no way in the UI to limit a search to just one album, but in the code it's pretty easy to do we just need to know what the UI would look like. I'd like to expand the search functionality but it hasn't been a high priority so far. It'd would be very easy for somebody to write an unofficial module to do something like this, though.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!

 
thefoxbrain

Joined: 2010-01-12
Posts: 28
Posted: Fri, 2011-01-14 18:42

Now that the album tree module has been developed could a similar module be created with the same dropdown of albums and then have a search box which only searches in that album?

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Mon, 2011-01-17 19:56

yes please, it is a very important feature..

if someone interested in helping to implement this feature, check this http://gallery.menalto.com/node/100002

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2011-04-04 22:09

Has this been worked on at all?

As for the UI, I'm thinking just two radio buttons below (or next to) the search box. One says something like "Search full gallery" and the other "Search photos in this album," with the default set to search the entire gallery. (I'll try to think of something shorter for the text.) The variable is sent from the radio selection to the search function. If searching only the album, the search would have to add in where parent_id == $item->parent_id().

I would start on this, but I'm not familiar with wrapping code in a module; I'd just hardcode it (and I have a few other search-related things higher up on the to-do list.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2011-04-24 02:30

No progress from my end... sorry.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!