How to run auto re-index via php script

I have a cronjob that runs 3 times daily …

The cronjob creates new posts (modified) in wordpress and delete the old ones. Then i have manually to trigger the action “Re-index” so that values in Algolia are not “null”.

How can i trigger the “Re-index” action at last in my php script ?

Hi @wissam, To trigger a reindex with php you will need to use one of our indexing methods to add, update or delete objects as found in our documentation.