Mysql server to elasticsearch

hope you are very new to elasticsearch. Using logstash you can load data from MySQL server to elasticsearch.
Try to explore n logstash.
We can load data based on query[Data mismatch in elasticsearch when loading data from database using logstash]