Be careful while querying inner objects in elasticsearch

In elasticsearch we can store closely related entities within a single document. For example, we can store a blog post and all of its comments together, by passing an array of comments. So we have an elasticsearch document describing a…