Ok, I found the problem. When I execute
Comment.sync_mapping
it throws me the following error:
Elastictastic::ServerError::IndexMissingException: [[development_comments] missing]
As parent and child have the same index, I changed the index name of Comment model same as parent. Now its working correct.
The elastictastic gem that I use is customized such that depending on the rails environment, the term development, staging or production is appended to the index_name. I suspect, in doing these changes I would have broken the parent child index name creation. I will soon look into the code and fix it
Thanks a lot for your help