search_core/Documentation/source/development/indexer.rst
Daniel Siepmann 3bebfac769
TASK: Fix documentation
As we have moved the repository at github, we should update all mentions
to use new url.
Also a small typo was fixed.
2018-03-08 19:26:36 +01:00

818 B

Develop a new Indexer

Make sure you understood concepts_indexing.

Each indexer has to be a single class which implements Codappix\SearchCore\Domain\Index\IndexerInterface.

The indexer should call the connection with all necessary information about the document(s) to trigger indexing or deletion of whole index.

As this is the "indexer", deletion of single documents is directly processed by the connection.

setIdentifier is called with the identifier of the current Indexer. This might be useful to fetch configuration, related to the indexing, from Codappix\SearchCore\Configuration\ConfigurationContainerInterface.

Dependency Injection is working for custom indexers, therefore you are able to inject the ConfigurationContainerInterface.