Add static function init() to init observers on models
Add static function init() to init observers on models

2 solutions:

* add 'observed_models' in jayps_search config/config.php

    'observed_models' => array(
        'noviusos_monkey::model/monkey' => array(
            'primary_key' => 'monk_id',
            'config_behaviour' => array(
                'fields' => array('monk_name', 'monk_summary', 'wysiwyg_content'),
                //'debug' => true,
            ),
        ),
    ),

and call \JayPS\Search\Orm_Behaviour_Searchable::init(); in you boostrap

OR

* in your bootstrap, listen the event 'config|jayps_search::config' and add observers on the fly:

    \Event::register_function('config|jayps_search::config', function(&$config) {
        $config['observed_models']['noviusos_monkey::model/monkey'] = array(
            'primary_key' => 'monk_id',
            'config_behaviour' => array(
                'fields' => array('monk_name', 'monk_summary', 'wysiwyg_content'),
                //'debug' => true,
            ),
        );
        $config['observed_models']['nos::model/page'] = array(
            'primary_key' => 'page_id',
            'config_behaviour' => array(
                'fields' => array('page_title', 'wysiwyg_content'),
                //'debug' => true,
            ),
        );
    });

\JayPS\Search\Orm_Behaviour_Searchable::init();

novius/jayps_search,jay3/jayps_search