Challenge: Aggregations
Test your aggregation writing skills in Elasticsearch.
We'll cover the following...
Challenge
You are working with a dataset of movie information stored in Elasticsearch. The dataset includes several attributes for each movie, such as title, lifetime_gross, year, studio, rating, runtime, budget, releaseDate, voteAvg, and voteCount. Your task is to perform different aggregation queries in Elasticsearch.
The movies index comprises several fields with their respective data types and purposes, including:
-
title: Thistextfield stores the title of the movie. It allows full-text search capabilities, enabling users to efficiently search for movies based on their titles. -
lifetime_gross: This field stores the total amount of money the movie has made in its lifetime. It is represented as aninteger...