indexing.module.ts
indexing.service.ts
/sync
or /re-sync
endpoint@island.is/content-search-indexer/types
library to ease implementation (see example below).doSync
function (see example below).SyncOptions
is passed to the importer service as a parameter to the doSync
function (see Importing data section for details ).doSync
must resolve to SyncResponse
or null
when called (see Importing data section for details ).postSync
function that is called after the importer has executed it's doSync
function (see Post sync section for details).postSync
function is passed the postSyncOptions
returned by doSync
in it's SyncResponse
(see Post sync section for details).MappedData
in SyncResponse.add
. You importer should support three types of imports (SyncOptions.syncType):/re-sync
endpoint./sync
endpoint.SyncResponse
if a locale in the search engine is not supported.postSync
is a function called by the indexer after doSync
and after all data has been imported into elastic. This function can serve as a cleanup function e.g. to release locks or maintain last sync tokens. To use you export a function called postSync
from your importer, it then gets passed the postSyncOptions
you returned from doSync
as part of SyncResponse
.Missing title in one entry
, should probably not throw an error and hence stop all importers while Your importer can't connect to it's data source
probably should throw an error and hence stop all importers. The importer is used when populating new versions of the indexes when deploying new versions of our apps hence we don't want the importer to succeed when it shouldn't.