SS 4.0 Site Search - How to enable?

Managed to get it working :slight_smile:

I had to write the following:

Inside /mysite/_config.php, I wrote:


And inside /mysite/_config/theme.yml, I appended:

enabled: ‘true’

And inside /mysite/code/Page.php, I appended:

use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\Connect\MySQLSchemaManager;

class MyDataObject extends DataObject
private static $create_table_options = [
MySQLSchemaManager::ID => ‘ENGINE=MyISAM’

Ran a /dev/build, and hey presto.

1 Like