Hi, 

 

I am facing a simple technical case that I am not sure how to deal with,
concerning the development of a repository connector. 

 

I want to develop a repo connector using the ADD_CHANGE_DELETE model that
will normally add seed documents, and each seed document will produce
several documents. 
The problem is that each produced document from a seed doc is instantly
ingest-able and does not need to be processed.

 

The use case here is that the addSeedDocuments method will call an API that
will provide several URIs (seeds).

In the processDocuments method, each URI provides a JSON array containing
JSON objects and those JSON objects are meant to become repository documents
and ingested. 
So the logic would be to use the activities.addDocumentReference for each
JSON object before I can use the activities.checkDocumentNeedsReindexing
(each JSON object has an id and a version field) and then ingest the
document. But by doing this, I am afraid that the processDocuments method
will be called with those newly referenced docs while they do not need to be
processed.

 

Any suggestion about how to deal with this use case is welcome. 

 

Thanks,
Julien

Reply via email to