I\'m using FOSElasticaBundle and Doctrine in my project, and my code works for the selective index update using the Doctrine lifecycle events. The issue I come up against is
I'm using FosElastica 3.1.0 and I have tried the solution provided by Julien Rm without success :-(
After many days of research, I finally found the solution here
$persister = $this->get('fos_elastica.object_persister.jaiuneidee.post'); $persister->insertOne($post);
Hope this help !