* static $indexes = array( * 'SearchFields' => 'fulltext(Name, Title, Description)' * ); * * * @package sapphire * @subpackage search */ class FulltextFilter extends SearchFilter { public function apply(SQLQuery $query) { $query->where("MATCH ({$this->getName()} AGAINST ('{$this->getValue()}')"); return $query; } } ?>