Indexers
An indexer knows how to read, process and index the records of one record type. There is exactly one indexer per record type, and any number of indexing services (see Indexing service) can configure it.
Standard fields
Every indexer sends these fields to Algolia:
| Field | Description |
|---|---|
uid | The UID of the record. |
pid | The page ID of the record. |
type | The record type, i.e. the table name. |
indexed | The time of indexing. |
created | The creation time of the record, if available. |
changed | The time of the last change of the record, if available. |
Field mapping
Which record fields are sent to Algolia, and under which attribute name,
is configured per table in TypoScript under
module., in the form
<record field> = <attribute name>. The defaults are listed on the
page of each indexer.
Warning
When the console command mkk:, which sends the
records to Algolia, runs on the command line (cron or the scheduler
command), it has no site context. It reads only the TypoScript shipped
with the extension, so changes to the mapping or to the allowed file
extensions in your site TypoScript are not applied when records are
indexed.
Note
Anyone holding the search key of your frontend can retrieve every
indexed attribute. Hide personal data such as author with the
Algolia index setting unretrievable.
When records are indexed
Records are indexed through the indexing queue:
- Creating or updating a record in the backend queues it for reindexing. A hidden record, or one with Include in Search disabled, is removed from the queue and from the index instead. Deleting a record removes it from the queue and from the index. The saved record itself is only queued by indexing services of its own site, see Search engine. Saving an enabled page also queues its content elements for every content element indexing service that covers them, whatever site the service belongs to. Saving a hidden page, or one with Include in Search disabled, removes its content elements from the queue and the index instead.
- The Queue backend module queues all records of the selected indexing services. It skips hidden subpages of the pages selected in Pages (recursively), together with their subpages and the records on them.
- The console command
mkk:, usually run as a scheduler task, processes the queue and sends the records to Algolia.queue: index: worker