Member
Member
RachelL   2009-02-10, 04:59
#1

Hey guys,

Just a question about the search function..

I name my images as "image-name-here.jpg"... so when I search for "image name here" nothing comes up, I have to add the hyphens and search for "image-name-here" in order for the image to show... is there a way to change that so that hyphens are regarded as spaces?

Thanks in advance for any help,
Rachel

Member
Member
RachelL   2009-02-12, 03:05
#2

Is there no way to search for more than one word? If I name my files "image name here", will the %20 that is added be regarded as a space when searching?

Member
Member
sbillard   2009-02-12, 05:34
#3

search for image & name & here

Member
Member
RachelL   2009-02-12, 07:05
#4

Thanks sbillard, using "&" doesn't seem to work for me though on v1.2.1.. or did you mean you have to search for "image" and "name" and "here" separately and there's no way around that?

Like on the demo gallery, with the image named "Monet - sunrise" (http://www.zenphoto.org/zenphoto/impressionists/Monet+-+sunrise.jpg.php)
searching for "monet sunrise" won't result in anything.. it will only result in something if you specifically search for "monet - sunrise".. I was wondering if that could be changed so that any symbols like "-" could be disregarded by the search function so it could recognize the "monet sunrise".

Thanks for your help,
Rachel

Administrator
Administrator
acrylian   2009-02-12, 12:14
#5

If you are still on 1.2.1 you should upgrade anyway.

Member
Member
RachelL   2009-02-12, 22:39
#6

Thanks, I will, is this search issue any different in the new version?

Member
Member
sbillard   2009-02-12, 23:28
#7

I took a look at your site and tried a few things. This problem seems to be due to the issue we have that TAGS do not work in boolean searches with the AND (&) operator. If I turn off the TAGS field in the search the image is found.

So it would appear your choices are:

  1. Disable TAGS as a search field.
  2. Use only TAGS as a search field and add the necessary tags to the images.

Right now I do not have an idea of how to get the two search types working together.

Member
Member
RachelL   2009-03-07, 06:20
#8

Thanks, could you please let me know how to disable tags as a search field, without having to manually untick the checkbox?

I was also wondering if it was possible to search an album exclusively?

Thanks again
Rachel

Member
Member
RachelL   2009-03-07, 07:04
#9

Oops, I found the option to disable tag searching in the gallery config, sorry.

I apologize for all of the questions, but just one more!

Although the "File/Folder name" and "Title" box is ticked under the search options (on the demo zenphoto gallery), a search for "impressionists & monet" doesn't return anything (the monet picture is in the impressionists folder, http://www.zenphoto.org/zenphoto/impressionists/Monet+-+sunrise.jpg.php). I thought I could use that when I wanted to search a specific album by using "albumfoldername & imagename" but it's not working for me, are the two searches not able to work together or am I searching for it incorrectly?

Also, I'd imagine this wouldn't be possible, but just in case, I was wondering if it were possible for a space between 2 words to be classified as an "and", instead of manually entering "&" (users wouldn't know to use that symbol automatically).

Thanks again for all of the help, it's much appreciated.
Rachel

Member
Member
sbillard   2009-03-07, 23:44
#10

It will not work because the album is a separate item from the image. You are searching the filename for inclusing of both impressionists and monet which combination does not exist.

You will need to teach your users to use AND (or &). Spaces in searches normally are assumed to be OR joins so making them an AND join would be even more confusing than using the text as a literal string (which is what we have chosen to do.)

Member
Member
RachelL   2009-03-08, 07:11
#11

Thanks for your reply.

So no way to search within a specific album?

Administrator
Administrator
acrylian   2009-03-08, 10:58
#12

No, sorry, that is not possible at the moment.

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