Hi, I'm new to using Elastisearch and I'm completely stuck on a query. I've actually written this query that returns different values for all the ingredients.
{ "query": { "bool": { "must": [ { "range": { "timestamp": { "lte" 1584436490917 } } }, { "bool": { "should": [ { "term": { "name": "IngredientName1" } }, { "term": { "name": "IngredientName2" } } ] } } ] } } }
I would like to complete it so that it only returns the last value of each ingredient.
Is it possible ? How ?
Thanks for reading.