Take a look at http://www.elastic.co/guide/en/elasticsearch/guide/current/relations.html to get you started.
On 17 March 2015 at 15:07, Mithrawnuroudo <[email protected]> wrote: > Could you help me to model architecture of storing posts and comments in > ElasticSearch? > > Currenlty i have simple data structure - I store in ES "posts" as > documents in ES index. I do search on that index to find posts with > particular words. Posts are not related to anything. Every post has unique > url and that's it. Simple. > > I want to add possibility to store comments to post."Comments" will be > special version of "posts" - comment has parent(other post) and comments > have particular order between other comments of their parent. I wonder how > should i model relationship between posts/comments and which ES data > structure should i use. I don't know anything about documents relationship > in Elasticsearch, so any help will be great. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/e262e145-3b1f-45f0-a374-a6b2dd8ad189%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/e262e145-3b1f-45f0-a374-a6b2dd8ad189%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9UMUeaXp%2BTa%2BGr9apsJeXCxtv8caMc9hhgdWx%3D_mN--g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
