cancel
Showing results for 
Search instead for 
Did you mean: 

Custom indexer execution sequence

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Custom indexer execution sequence

You are creating a new indexer which must run after the 

 targetrule_product_rule

index process.
When you run bin/magento indexer:reindex , your rule always runs first creating inaccurate data.

 

 

What is the resolution?

 

- Specify the sortOrder in your indexer configuration.
- Use a plugin on the IndexManager class to change load order.
- Create a bash script to execute each indexer in the correct order.
- Use a dependencies node in your indexer configuration.

1 REPLY 1

Re: Custom indexer execution sequence

- Use a dependencies node in your indexer configuration.

 

https://magento.stackexchange.com/questions/5038/order-of-indexing