You are on page 1of 1

# index - db, type - table, properties - column for type(table)

# indices color health check (index health)


GET _cat/indices

GET _cluster/settings
# returns the health of cluster
GET _cluster/health
# get all the shards
GET _cat/shards
# get the complete mapping
GET _mapping

# get the mapping of index `unity`


GET unity/_mapping

# creating a new index `my-index` with type `my-type` which will have a single
property `message` of type `text`
PUT /my-index
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"my-type": {
"properties": {
"message": {
"type": "text"
}
}
}
}
}

# updating properties of type `my-type` which is under index `my-index`, also can
add more mapping here
PUT my-index/_mapping/my-type
{
"properties": {
"message":{
"type": "text"
}
}
}

################################################
############## START FROM HERE #################
################################################