I need to provide One-to-Many relationships in my index.
example: Team and its players.
Both of the above would contain similar fields.
There would be constant updations or inclusion on new players to existing team.
What is the most suitable method to store this type of data structure?
Please note, Players are part of Team. So any search matched in any of the players would be considered as a match in Team.
Elasticsearch is not a relation system although you can use the join feature.
But, let's talk about the use case first.
What are your users going to search for? Players? Teams? Both? Note that a team and a player are not identical objects.
What are the typical questions they want to ask to the system? Which attributes do they need to search for Players (or Teams)?
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.