connrs/Searchable-Behaviour-for-CakePHP — pull request #2 by zeroasterisk (2014-01-07 18:12:42+00:00)
Title: Search index

Significant updates [rename]
Due to naming Conflicts with other Plugins (CakeDC/Search/SearchableBehavior)

* Renamed the Plugin from Search to SearchIndex
* Renamed the Behavior from SearchableBehavior to SearchIndexableBehavior
* Renamed the Helper from SearchableHelper to SearchIndexHelper

Correct coding formating to adhere to CakePHP Coding Standards

* tabs not spaces
* no if's without curlys

Slightly better naming conventions and method organization

* callbacks at the top, strict adhereance
* processData() --> _getIndexData()
* index() --> __getIndexData()

Misc minor refacoring

* reduce level of indents/nesting
* fail fast

----------------------

To update, you will need to

change: app/Config/bootstrap.php --> CakePlugin::load('SearchIndex');

change: app/Model/AppModel.php -->

public $actsAs = array(
'SearchIndex.SearchIndexable' => array(
'stopwords_lang' => 'english',
)
);

change all helpers to: $this->SearchIndex->...