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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.