Hi. I was wondering if it is possible to configure the search module to return exact matches only. I need the search box to be used to search full names, for example: "Brian Waters".
Right now I get all the result for Brian and Waters. Its only problem because I also have tags for "Ryan Waters" for example so when I search for "Brian Waters" I´ll get all the pictures with Brian, and all the pictures with Waters, which is a lot more of what we need.
Thanks for your help.
Posts: 27300
Search for "Brian Waters" with the quotes.
http://codex.galleryproject.org/Gallery3:Modules:search#Operation.2FUsage
http://codex.galleryproject.org/Gallery3:Modules:search_help
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Thanks a lot. Unfortunately it does´t work. The search comes back with more results that it should.
There is one picture with Brian Waters and one with Ryan Waters in the gallery hosted: http://www.linacortes.com/nogales/index.php/
Any ideas?
Posts: 27300
Seems to work.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Think I go it!
In the search.php file line 30
if ((substr($terms[$i], 0, 1) != '"') && (substr($terms[$i], -1, 1) != "*")) {
change it for
if ((substr($terms[$i], 0, 1) != '') && (substr($terms[$i], -1, 1) != "*")) {
And It works!