If you are receiving the above JSON as a response, then Elasticsearch Server starts properly.

Now, we will start settng up the development environment on the local machine. It’s too easy as you have to just download the plugin for Chrome Sense. After successful installation is done, you will get the icon, given below, for sense-

Select that icon to start sense

Start Development,

Insert data - First Enter below json,

POST /test/test/

{

"color":"blue",

"price":30

}

Press Green button to execute.

You will get an output.

{

"_index": "test",

"_type": "test",

"_id": "AVeAkPROSRYbKbs9pYch",

"_version": 1,

"created": true

}

To understand the terms like index and type in details, please go through the link, given below, from Elasticsearch Website.

Select or search data

GET /test/test/_search

Searching conditional data

This Service will give you first value.

GET /test/test/1

This will return the records, which matches the condition mentioned in the query.

GET /test/test/_search

{

"size": 3,

"query": { "match": { "color": "red" } }

}

Aggregation

This is used, when we need sum, min, max or any other arithmetic operation results.

"aggregations" : {

"group_by_state" : {

elasticsearch-gui

This gives you a user interface, where you can get detailed dashboard information about Elasticsearch with the list of indexes, you can also remove size as well.

Use the command, given below, from command prompt to add or install on your machine bin/plugin install jettro/elasticsearch-gui

Next, you can browse to your Elasticsearch instance - http://localhost:9200/_plugin/gui/index.html

Elasticsearch integrate with C#

Here, we will create one sample Application in C#, where we can call Elasticsearch Services through Elasticsearch client and use Elasticsearch as a database.

This way, one can add more functionality to interact with Elasticsearch and add test cases as well. Please find the attached sample project for reference. If you are facing any issue, please contact. Thanks for reading.