Elasticsearch – ABCD

Step 1: Install Elasticsearch
Step 2: Install Chrome Sense plugin
Step 3: Try following and feel Elasticsearch (Copy paste following to left navigation of Sense screen)

PUT /customer?pretty

GET /_cat/indices?v

PUT /customer/external/1
{
“first-name”: “John”,
“last-name”: “Brown”
}

PUT /customer/external/2
{
“first-name”: “John”,
“last-name”: “White”
}

PUT /customer/external/3
{
“first-name”: “John”,
“last-name”: “Johny”
}

PUT /customer/external/4
{
“first-name”: “Johnathan”,
“last-name”: “Smith”
}

PUT /customer/external/5
{
“first-name”: “JohnyJohny”,
“last-name”: “YesPapa”
}

PUT /customer/external/6
{
“first-name”: “John”,
“last-name”: “White Paper”
}

PUT /customer/external/7
{
“first-name”: “John”,
“last-name”: “”
}

GET /customer/external/2

DELETE /customer

GET /_cat/indices?v

POST /customer/external/1/_update
{
“doc”: { “name”: “Jane Doe” }
}

POST /customer/external/1/_update?pretty
{
“doc”: { “name”: “Jane Doe”, “age”: 20 }
}

POST /customer/external/1/_update?pretty
{
“script” : “ctx._source.age += 5”
}

GET /_nodes/process?pretty

———————————-

GET /customer/_search
{
“query” : {
“match” : {
“first-name” : “John”
}
}
}

GET /customer/_stats/

ES_ABCD

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s