coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MarianneC on August 16, 2008, 07:46:48 PM

Title: Search Query question
Post by: MarianneC on August 16, 2008, 07:46:48 PM
I wasn't sure what category this really belongs in.  I'm trying to structure a search query, and I'm not getting the results that I expect.

If I want to get only folks located at 551 Tremont Street, I've written this query:

thumbnails.php?album=search&type=full&search=551+Tremont

However, that seems to be returning anything with Tremont in it.  What operator should I be using to just get 551 Tremont?

Thanks,
Marianne
Title: Re: Search Query question
Post by: MarianneC on August 18, 2008, 03:33:47 AM
Is there any documentation on the search function?
Title: Re: Search Query question
Post by: Nibbler on August 18, 2008, 10:18:24 AM
Yeah, read the code :)

It will search OR by default. You can change that to be AND by default in include/search.inc.php.