I am using Drupal 8 Commerce module.
I am using Elastic Search on AWS platform.
From the Admin whenever product is saved, those changes are directly applied on Elastic Search server, but when I try with
$product->save() it is not working 100%.
So if I have to update 10 products in Elastic Search how to achieve that programatically?
In particular, I have to update one field only. Because what is happening that, it will update that field value in database but not on Elastic Search.
I found this useful post for Node How To Force Search API To Reindex a Node / an Entity