Full text searching in CakePHP
public function search(){
$query = $this->request->data[‘Articles’][‘search’];
$escapedQuery = $this->Article->getDataSource()->value($query);
$data = $this->Paginator->paginate(‘Article’,
array(“MATCH (Article.title) AGAINST ($escapedQuery)”)
);
$this->set(‘articles’, $data);
$query = $this->request->data[‘Articles’][‘search’];
$escapedQuery = $this->Article->getDataSource()->value($query);
$data = $this->Paginator->paginate(‘Article’,
array(“MATCH (Article.title) AGAINST ($escapedQuery)”)
);
$this->set(‘articles’, $data);
}