a plugin for sync between elasticsearch and kafka
elastic search version : 1.6.0
kafka version : 0.8.2.2
kafka message is a json string, you can can unserilized string, and get the related information
{ "_type" : "web", "_index" : "blog", "_id" : "1", "_action": "insert", "title" : "this is a paper about the gw", "content": "blablablabla......" "tag" : [ "paper", "word", "segment" ] }
when you are using this format,you have posted http://ip:port/{_type}/{_index}/{_id} document;
_action
support insert
, update
, delete
action, you can add , update , remove the document in the elasticsearch.
you can modify the code, or you can redefine the kafka string format