Wilr\SilverStripe\Algolia\Service\AlgoliaService
Synopsis
class AlgoliaService
{
- // members
- public string $adminApiKey = '';
- public string $searchApiKey = '';
- public string $applicationId = '';
- public array $indexes = ;
- protected $client;
- // methods
- public SearchClient getClient()
- public void getIndexes()
- public array initIndexes()
- public string environmentizeIndex()
- public void syncSettings()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $client
public
- $adminApiKey
- $applicationId
- $indexes
- $searchApiKey
Methods
public
- environmentizeIndex() — Prefixes the given indexName with the configured prefix, or environment type.
- getClient()
- getIndexes()
- initIndexes() — Returns an array of all the indexes which need the given item or item class. If no item provided, returns a list of all the indexes defined.
- syncSettings() — Sync setting from YAML configuration into Algolia.