Class

eZ\Bundle\EzPublishCoreBundle\ApiLoader\SearchEngineFactory

class SearchEngineFactory

The search engine factory.

Methods

__construct(RepositoryConfigurationProvider $repositoryConfigurationProvider)

registerSearchEngine(Handler $searchHandler, string $searchEngineIdentifier)

Registers $searchHandler as a valid search engine with identifier $searchEngineIdentifier.

Handler[] getSearchEngines()

Returns registered search engines.

Handler buildSearchEngine()

Builds search engine identified by its identifier (the "alias" attribute in the service tag), resolved for current siteaccess.

Details

at line 32
public __construct(RepositoryConfigurationProvider $repositoryConfigurationProvider)

Parameters

RepositoryConfigurationProvider $repositoryConfigurationProvider

at line 45
public registerSearchEngine(Handler $searchHandler, string $searchEngineIdentifier)

Registers $searchHandler as a valid search engine with identifier $searchEngineIdentifier.

Note It is strongly recommended to register a lazy persistent handler.

Parameters

Handler $searchHandler
string $searchEngineIdentifier

at line 55
public Handler[] getSearchEngines()

Returns registered search engines.

Return Value

Handler[]

at line 68
public Handler buildSearchEngine()

Builds search engine identified by its identifier (the "alias" attribute in the service tag), resolved for current siteaccess.

Return Value

Handler

Exceptions

InvalidSearchEngine