forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mboesen on November 05, 2009, 10:29:30 am

Title: Search string - multiple words
Post by: mboesen on November 05, 2009, 10:29:30 am
Hi

I think (and hope) this is an easy one, but I am not that much into coding that I can figure it out by myself. Have tried with a "+" and "AND", but it doesn't seem to work.

I use the following search string (gotten in here) for direct links from other website

http://www.fodboldfotografen.dk/coppermine14x/thumbnails.php?album=search&type=full&search=XXXXX

If I want the XXXXX to be two or three words that should be searched on, then how do I write that?

Link:
http://www.fodboldfotografen.dk/coppermine14x/index.php

Thanks for your time
Title: Re: Search string - multiple words
Post by: Joachim Müller on November 05, 2009, 10:44:23 am
Have tried with a "+" and "AND"
huh?
The plus-sign (+) works exactly as advertized: the URL http://www.fodboldfotografen.dk/coppermine14x/thumbnails.php?album=search&type=full&search=Caroline+Venus will search for "Caroline" AND "Venus" and will return both the pics from Caroline Wozniacki as well as Venus Williams.
Title: Re: Search string - multiple words
Post by: mboesen on November 05, 2009, 10:48:53 am
Ok thanks....

I'll try again  ;)
Title: Re: Search string - multiple words
Post by: mboesen on November 05, 2009, 10:52:43 am
Sorry I thought I could edit the post, but accidentally marked it as solved.....

Just to clarify.....

Does the + mean that both words should be represented (I don't think so) and what if I want to specify that both words are required. How do I do that. If it can be done
Title: Re: Search string - multiple words
Post by: mboesen on November 06, 2009, 10:47:07 am
I'll try to clarify more......

If I have two photos with the keywords

Michael Larsen

Michael Jensen

(I don't, but just as an example)

Then when I use the following search

http://www.fodboldfotografen.dk/coppermine14x/thumbnails.php?album=search&type=full&search=XXXXX

then I would like to be able to use both names like "Michael+Larsen" and only get that one picture, but "Michael+Larsen" will also return the other Michael..... If there a search string that will return only the photos where both (or more) words are represented?

Sorry again for the mix up with solved and editing post, which I couldn't......

Michael
Title: Re: Search string - multiple words
Post by: Joachim Müller on November 06, 2009, 05:17:04 pm
That's currently not a feature afaik.