[Solved]: Keywords "Search" Question [Solved]: Keywords "Search" Question
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Keywords "Search" Question

Started by masksmaster, May 04, 2008, 05:27:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

masksmaster

Hello,

I've noticed that when clicking on the keyword I'm getting the result with that word being a part of title or description on pictures that don't even have keywords associated with them. I was wondering if you could point me in the right direction to make sure that "keyword search" is only searching on the keyword field.

Many thanks

Nibbler

include/search.inc.php

find


if (!isset($USER['search']['params'])){
        $USER['search']['params']['title'] = $USER['search']['params']['caption'] = $USER['search']['params']['keywords'] = $USER['search']['params']['filename'] = 1;
}


change to


if (!isset($USER['search']['params'])){
        $USER['search']['params']['keywords'] = 1;
}

masksmaster

Thank you very much!
That definitely provides the functionality I need!