Symbiote\Elastica\Searchable
Adds elastic search integration to a data object.
Synopsis
class Searchable
extends DataExtension
{
- // methods
- public void __construct()
- public string getElasticaType()
- public void autoIndex()
- public array getElasticaFields()
- public Mapping getElasticaMapping()
- public void getElasticaDocument()
- protected void getParentsHierarchyField()
- public boolean canShowInSearch()
- public void onAfterWrite()
- public void onAfterDelete()
- public void onAfterPublish()
- public onAfterUnpublish()
Hierarchy
Extends
- DataExtension
Members
private
- $service
public
- $mappings
Methods
protected
- getParentsHierarchyField() — Get a solr field representing the parents hierarchy (if applicable)
public
- __construct()
- autoIndex()
- canShowInSearch() — Can this item be shown in a search result?
- getElasticaDocument()
- getElasticaFields() — Gets an array of elastic field definitions.
- getElasticaMapping()
- getElasticaType()
- onAfterDelete() — Removes the record from the search index.
- onAfterPublish()
- onAfterUnpublish() — If unpublished, we delete from the index then reindex the 'stage' version of the content
- onAfterWrite() — Updates the record in the search index.