The Default Password For The User Is .: Elastic Changeme
The Default Password For The User Is .: Elastic Changeme
The Default Password For The User Is .: Elastic Changeme
Cd bin
b) Once kibana is loaded ,click on the dev toll and start creating index ,type,docs and shards
c) We can use CRUD API (GET,PUT,POST,DELETE)
PUT /company/employee/1
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"analysis": {
"analyzer": {
"analyzer-name": {
"type": "custom",
"tokenizer": "keyword",
"filter": "lowercase"
}
}
},
"mappings": {
"employee": {
"properties": {
"age": {
"type": "long"
},
"experience": {
"type": "long"
},
"name": {
"type": "string",
"analyzer": "analyzer-name"
}
}
}
}
}
}
POST company/employee/_create
{
"name": "Andrew",
"age" : 45,
"experience" : 10
}
GET company/employee/_search
{
"query": {
"match_all": {}
}
}
GET company/employee/_search
{
"query": {
"match": {
"name": "Andrew"
}
}
}
GET company/employee/_search
{
"query": {
"range": {
"age": { "gte": 35 }
}
}
}
GET company/employee/_search
{
"bool": {
"must": { "match": {"name": "Andrew" }},
"should": { "range": {"age": { "gte": 35 }}}
}
}