Version: current

# Class FulltextSearchable

Provides a simple search engine for your site based on the MySQL FULLTEXT index

  Extension
  DataObjectDecorator
  FulltextSearchable

Package: sapphire\search
Located at sapphire/search/FulltextSearchable.php

## Methods summary

`public static` | # `enable( mixed $searchableClasses = array('SiteTree', 'File') )` Enable the default configuration of MySQL full-text searching on the given data classes. Enable the default configuration of MySQL full-text searching on the given data classes.
`public` | # `__construct( mixed $searchFields )` #### Overrides `Extension::__construct`
`public array` | # `extraStatics( mixed $class = null, mixed $extension = null )` Define extra database fields Define extra database fields Return a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Returns `array` Returns a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Overrides `DataObjectDecorator::extraStatics`

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `requireDefaultRecords()`, `updateCMSActions()`, `updateCMSFields()`, `updateFieldLabels()`, `updateFrontEndFields()`, `updateSummaryFields()`

### Methods inherited from Extension

`clearOwner()`, `getOwner()`, `get_classname_without_arguments()`, `setOwner()`

### Magic methods summary

## Properties summary

`protected mixed` | $searchFields | #

### Properties inherited from DataObjectDecorator

`$decoratable_statics`

### Properties inherited from Extension

`$allowed_actions`, `$class`, `$owner`, `$ownerBaseClass`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -