My wanna be able to fetch each team name with the number of wins against their names, how do I do that?
I am able to get # of wins by team1 and team2 however, thats clearly not enough. For reasons beyond the topic, I cannot store team name itself in the winner field.
It basically takes the value of the winner field and stores it in a variable winner, and then returns the value of the field with the name of the winner variables value. It comes with the usual caveats of using scripting which you can read about here: https://www.elastic.co/guide/en/elasticsearch/reference/2.1/modules-scripting.html
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.