PostgreSQL + Elasticsearch synchronization

WE use Java and in application we write, modify and delete data in PostgreSQL.

How to synchronize data between PostgreSQL and Elasticsearch? so, they will have same data.

I'd read http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/

HTH