* 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->getDbName()} AGAINST ('{$this->getValue()}')"); return $query; } public function isEmpty() { return $this->getValue() == null || $this->getValue() == ''; } } ?>