I have to use elastic search in my project for searching. And I'm new player on that field. I have spend some time on it and I come to know that how it stores data and it's working etc. But I have some questions regarding Elasticsearch with MySql. Like,
- How to index relational tables (Normalised Tables of MySql) into Elasticsearch? I think I have two options. i.e, (i) index MySql tables as it is in Elasticsearch and use two search queries for searching data from both tables (say, users and contacts) while searching. (ii) Get all the parent and child records from MySql tables and create nested JSON and index it in Elasticsearch. But I don't think that this is right way.
- How to update document in Elasticsearch as MySql record changes?
- How to convert JOIN query of MySql into search quesry of Elasticsearch? or I must have to make two separate search call for each table.
So there is lots of confusion in mind when topic comes with MySql. I have already searched on Internet. But I have found blogs related to only basics, not with MySql. If any one can explain this nicely, it will be appreciated.