Sunnysideup\SearchSimpleSmart\Extensions\SearchEngineMakeSearchable
Add this DataExtension to any object that you would like to make searchable.
Synopsis
class SearchEngineMakeSearchable
extends DataExtension
{
- // members
- private array $_onAfterWriteCount = ;
- private static array $_search_engine_exclude_from_index = ;
- private static array $_search_engine_exclude_from_index_per_class = ;
- // methods
- public void doSearchEngineIndex()
- public array SearchEngineFullContentForIndexingBuild()
- public array SearchEngineAlsoTrigger()
- public DataList SearchEngineKeywordDataObjectMatches()
- public array|null SearchEngineResultsTemplates()
- public void updateCMSFields()
- public void updateSettingsFields()
- public void SearchEngineFieldsToBeIndexedHumanReadable()
- public void onAfterPublish()
- public void onBeforeDelete()
- public void onAfterUnpublish()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void indexMeOnShutDown()
- public void SearchEngineDeleteFromIndexing()
- public array SearchEngineFieldsForIndexing()
- public DataList SearchEngineDataObjectFullContent()
- public bool SearchEngineIsIndexed()
- public boolean SearchEngineExcludeFromIndex()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Tasks
Line | Task |
---|---|
263 | make sure that the linked objects are also reindexed. |
273 | make sure that the linked objects are also reindexed. |
283 | make sure that the linked objects are also reindexed. |
Members
private
- $_onAfterWriteCount — int
- $_search_engine_exclude_from_index — array
- $_search_engine_exclude_from_index_per_class — array
Methods
public
- SearchEngineAlsoTrigger() — returns a list of classnames + IDs that also need to be updated when this object is updated: return array( [0] => array('ClassName' => MyOtherClassname, 'ID' => 123), [1] => array('ClassName' => FooClassName, 'ID' => 122) [1] => array('ClassName' => BarClassName, 'ID' => 124) )
- SearchEngineDataObjectFullContent() — Indexed Full Content Data
- SearchEngineDeleteFromIndexing()
- SearchEngineExcludeFromIndex()
- SearchEngineFieldsForIndexing() — returns array like this: 1 => array('Title', 'MenuTitle') 2 => array('Content')
- SearchEngineFieldsToBeIndexedHumanReadable()
- SearchEngineFullContentForIndexingBuild() — returns a full-text version of an object like this: array( 1 => 'bla', 2 => 'foo', ); where 1 and 2 are the levels of importance of each string.
- SearchEngineIsIndexed() — Is this object indexed?
- SearchEngineKeywordDataObjectMatches() — Indexed Keywords
- SearchEngineResultsTemplates() — returns a template for formatting the object in the search results.
- doSearchEngineIndex() — deletes cached search results sets stage to LIVE indexes the current object.
- indexMeOnShutDown()
- onAfterPublish()
- onAfterUnpublish() — delete SearchEngineDataObject and all that relates to it.
- onAfterWrite() — Mark for update
- onBeforeDelete() — also delete SearchEngineDataObject and all that relates to it.
- onBeforeWrite() — Mark for update
- updateCMSFields()
- updateSettingsFields()