Refreshing the ElasticSearch index from RDBMS using Spring Data

回眸只為那壹抹淺笑 提交于 2019-12-22 08:24:45

问题


I have the following setup :

  • Mysql RDBMS server
  • Elastic Search Server

My requirement is to copy data periodically from MYSQL RDBMS and update Elastic server with it.Currently i am following the approach below :

  • A Batch Job which reads all data from MYSQL using Spring Data Jpa
  • It then pushes all data to elastic server using spring data elastic

This approach is very cumbersome and not efficient.Is there a way where i can read only the updated values using spring data and update the index accordingly in elastic.

Using jdbc-river etc is not an option for me as the application uses Spring data elastic to get data and search over elastic search,with jdbc-river it will not be able to function properly i think.

来源:https://stackoverflow.com/questions/31999523/refreshing-the-elasticsearch-index-from-rdbms-using-spring-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!