Posts

Showing posts with the label #Elastic Search.#Kibana

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 inde...

Querying in elastic search (part -3)

Now moving further with the query part All the query which will be performed will be on the data which we have in part -2 of the post so if not refered do refer it first. For querying , What if you only  remember a word cricket say , I want to find the student who knows cricket to play you have some sort of student records and you only know the database name and a table name. Now we will need a query to find records containing cricket in db. POST /college/student/_search {     "query" :     {         "query_string":         {            "query": "cricket"         }     } } We can have this type of query for the search query for _search in that we again have a query_string, The query_string query parses the input and splits text around operators. Each textual part is analyzed independently of each other. Assume here we only have a word cricket ...

Elastic search installation process(Windows operating System) (part -1)

Image
Here we are going to start with the Elastic search will not talk about what the elastic search is and what it does that you can find easily on Google, Here I will provide a straight forward and an easy guide to install elastic and Kibana. First of all Elastic search is easy to install actually you don't have to install just unzip the file by downloading at https://www.elastic.co/downloads/elasticsearch . 1)Click here on Zip extract the Zip to the desired Location(of your choice). 2)Where you extracted just go to bin folder and doubleClick on elasticsearch.bat file. 3) After the process gets over just hit the link  http://localhost:9200/ in browser 9200 is the default           port and you will receive a Json response such as      { "name" : "hoHWVaa", "cluster_name" : "elasticsearch", "cluster_uuid" : "Ma-s8G6RTxah-IPoB4twKw", "version" : { "number" : "6.3.2", ...