I'm building a simple blog for myself as a way to learn ES. I have a pretty
typical set of models, Post, PostTag, PostCategory, PostComment etc.. I'm
wondering what the best way to store/index these models is -- specifically,
with documents that are related to other types. Does ES handle sql-like
joins with related documents? For example, would Comments be a separate
type, or would they be nested within the Post from which they belong?
I'm building a simple blog for myself as a way to learn ES. I have a pretty typical set of models, Post, PostTag, PostCategory, PostComment etc.. I'm wondering what the best way to store/index these models is -- specifically, with documents that are related to other types. Does ES handle sql-like joins with related documents? For example, would Comments be a separate type, or would they be nested within the Post from which they belong?
One thing I'm not clear on how to do is hierarchical relationships. I want
to store the comments for a post in the post document. A comment can have a
parent etc... What would a mapping look like to handle this situation? What
if I wanted to query posts on a particular comment author name?
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.