Suggestion on IIndexingTaskManager

Topics: Core, Customizing Orchard
Apr 29, 2015 at 3:40 PM
Hi,

I have a suggestion for IIndexingTaskManager interface methods CreateUpdateIndexTask and CreateDeleteIndexTask. Currently they take a single content item as a parameter. I would like to change these methods to take array of content items.

Background:
We have DB Transactions committed at the end of the web request. It means, changes happened to the content items and its child objects will be available only after the Transaction commit.

I have some Restful apis they make changes to some data, based on that I have to create indexing tasks for one or more content items.
Since the transaction is not over yet, I use IProcessingEngine.AddTask to create indexing tasks to index these content items. I had to create one IProcessingEngine.AddTask for each content item. For performance reason, I would like to create one IProcessingEngine.AddTask for all the content items they need to be indexed.