we are building an application with c# web api ,sql server and Angular 5 .So we need to move search functionality to elasticsearch.Actually I have seen Nested objects and Parent child relationship.Which one is better.So the data is keeps on updating.
The sql query is having inner joins and left join, so my question is how to move to elasticsearch?
It's preferable to do joins at index time and denormalize your data instead of doing complex things at search time.
Anyway, elasticsearch does not really support joins. But as you saw parent/child is providing that kind of join feature but you should use that after having explored all the other solutions.
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.