Symbiote\ElasticSearch\ElasticaSearchable
Adds additional indexing fields to support broader search usage
Ensures that Versioned content is indexed in an appropriate stage.
- Author: marcus
Synopsis
class ElasticaSearchable
extends Searchable
{
- // members
- public static string $stage_field = 'SS_Stage';
- private boolean $liveIndex = false;
- // methods
- public void reIndex()
- public void onAfterPublish()
- public void onBeforeUnpublish()
- public void getElasticaFields()
- public void getElasticaDocument()
- protected void getParentsHierarchyField()
Hierarchy
Extends
- Heyday\Elastica\Searchable
Members
private
- $liveIndex
—
boolean
Are we indexing _live_ content?
public
- $stage_field
Methods
protected
- getParentsHierarchyField() — Get a field value representing the parents hierarchy (if applicable)
public
- getElasticaDocument()
- getElasticaFields()
- onAfterPublish()
- onBeforeUnpublish()
- reIndex() — Handles indexing of stage and Live content