Elastic search Aggregations (Metrics) Part - 5
In the previous post we saw about how to create index and how can we map fields in elastic search now we will see how aggregations work in elastic search. If not referred previous post just have an overview of it and then read this tutorial. In the previous post we prepared an index for elastic search known as company.In that we have a type called employee and various fields beneath. Now lets insert some documents for application of aggregations. POST company/employee/1 { "employee_company_name":"jobs beach", "employee_dateofjoining": "2015-01-01", "employee_designation":"software developer", "employee_experience":2, "employee_name":"rushabh thakkar", "employee_salary":19000, "employee_technology":"java" } POST company/employee/2 { "employee_company_name":"jobs sky", "employee_dateofjoining": ...