The c5 search block doesn't seem to search more than one word?

Permalink
Hi There,

We have a bunch of small websites that require basic search options and the c5 search block seems to work fine - but it doesn't search more than one word.

Is this how it's supposed to work?

Any help would be much appreciated.

Cheers

Ben

 
cmscss replied on at Permalink Reply
I found a post that mentions that the controller.php file needs updating (sorry, for the life of me I can't find that post now!).

The suggested fix allows searching for more than one word, but now the search seems to ignore page attributes.

e.g. it searches pages set to exclude from the search and won't search custom attributes - is that the way it's supposed to work? I'm sure it ignored pages set to exclude before.

Here's the code I found from the other thread:
<?
defined('C5_EXECUTE') or die("Access Denied.");
class SearchBlockController extends BlockController {
var $pobj;
protected $btTable = 'btSearch';
protected $btInterfaceWidth = "400";
protected $btInterfaceHeight = "170";
public $title = "";
public $buttonText = ">"; 
public $baseSearchPath = "";
public $resultsURL = "";
protected $hColor = '#EFE795';
public function highlightedMarkup($fulltext, $highlight) {
$this->hText = $fulltext;
$this->hHighlight = str_replace(array('"',"'","&quot;"),'',$highlight); // strip the quotes as they mess the regex
jordanlev replied on at Permalink Reply
jordanlev
http://www.concrete5.org/index.php?cID=112065