Posts

Showing posts from September, 2018

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": "

Elastic search basics..!!(Add an index and Define Mapping) Part - 4

On the first three post I just gave the overview of How we can do hands on on elastic search  but know we will go somewhat deeper by the actual way to learn elastic search. In the previous post we saw how to create the documents in elastic search , But did anyone wonder how the fields gets attached on the fly and Index as well Type gets created? In the previous post we took example of student But now lets take an example that will be useful to us in future tasks. Lets take an example of company where the employees are working. So what we need first is to prepare a document of a company,by generating Index Type fields(as per requirements) Data Type Or Type of the respective fields. These are the four basic things we need to deal with in order to deal a document in elastic search. Lets get started we will define an index and a type so first of all in your Kibana we can write like.... PUT company So we are making a PUT request and asking to create an index na