How to structure posts with comments for a blog?

What's the best way to structure a post/comment system using elasticsearch?
I'm using elasticsearch as a secondary database.

There would be a post with a multithreaded commenting system, maybe two
levels deep.
Each post can have up to 500-1000 comments.
There will be incremental counters for both likes and comments for each
comment and post. This means a lot of indexing.

Is it better to go with nested objects OR parent/child OR something else?
Any advice on structure and how often to update elastricsearch would be
most appreaciated.



You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit