FriendsOfSymfony / FOSElasticaBundle

Elasticsearch PHP integration for your Symfony project using Elastica.
http://friendsofsymfony.github.io
MIT License
1.24k stars 795 forks source link

How to manually update index? #1861

Open EnterVPL opened 2 years ago

EnterVPL commented 2 years ago

Hi I have problem with update one field. Elastica not auto-detect changes and I try find how to update changes manual. I have id and uuid, I have new proprety. If I updated this using Entity Manager persist and flush then DB has changes but document in elasticsearch is not updated.

How to code update field?

locojuhi commented 2 years ago

Hi @EnterVPL , I'm not totally sure what is the full scenario.

Have you added a new property and this need to be updated in the index or you are chaging the record is not updating the index?

EnterVPL commented 2 years ago

I trying update only one value in property