Vulcan\Search\Extensions\SearchIndexExtension
Class SearchIndexExtension
Synopsis
class SearchIndexExtension
extends DataExtension
implements
Flushable
{
- // methods
- public void onAfterWrite()
- public void onBeforeDelete()
- public array searchableColumns()
- public static array|mixed extendedClasses()
- public static void flush()
- public DBHTMLText SearchRender()
- private DBHTMLText getRenderedSearchItem()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Implements
- SilverStripe\Core\Flushable
Methods
private
- getRenderedSearchItem() — Attempts to find a Render template for the owning class name otherwise fallsback to default
public
- SearchRender() — Renders the current object for display in search results
- extendedClasses() — Finds and caches all classes who have me added as an extension
- flush() — Flushes the search cache manifest and recreates it
- onAfterWrite() — We want to index the record on write. If the record is an instance of Page the record will be indexed only if the page is published or unindexed if otherwise
- onBeforeDelete() — We want to remove the index record when the owning record gets deleted
- searchableColumns() — Return an array of all Columns that contain searchable text