ES Requests :
DELETE msm_test
PUT msm_test
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
}
}
POST msm_test/doc/_mapping
{
"properties": {
"id": {
"type": "integer"
},
"fuelType": {
"type": "keyword"
},
"gearbox": {
"type": "keyword"
},
"seats": {
"type": "integer"
},
"doors": {
"type": "integer"
},
"colour": {
"type": "keyword"
},
"make": {
"type": "keyword"
},
"model": {
"type": "keyword"
}
}
}
POST msm_test/doc
{
"id": 1,
"fuelType": "diesel",
"gearbox": "automatic",
"seats": 4,
"doors": 4,
"colour": "yellow",
"make": "BMW",
"model": "1 Series"
}
POST msm_test/doc
{
"id": 2,
"fuelType": "diesel",
"gearbox": "automatic",
"seats": 4,
"doors": 4,
"colour": "black",
"make": "BMW",
"model": "1 Series"
}
POST msm_test/doc
{
"id": 3,
"fuelType": "diesel",
"gearbox": "automatic",
"seats": 4,
"doors": 4,
"colour": "white",
"make": "BMW",
"model": "2 Series"
}
POST msm_test/doc
{
"id": 4,
"fuelType": "petrol",
"gearbox": "automatic",
"seats": 4,
"doors": 5,
"colour": "white",
"make": "BMW",
"model": "2 Series"
}
POST msm_test/doc
{
"id": 5,
"fuelType": "petrol",
"gearbox": "automatic",
"seats": 4,
"doors": 5,
"colour": "white",
"make": "BMW",
"model": "3 Series"
}
POST msm_test/doc
{
"id": 6,
"fuelType": "petrol",
"gearbox": "automatic",
"seats": 4,
"doors": 5,
"colour": "white",
"make": "Audi",
"model": "A1"
}
POST msm_test/doc
{
"id": 7,
"fuelType": "diesel",
"gearbox": "automatic",
"seats": 4,
"doors": 5,
"colour": "white",
"make": "Audi",
"model": "A1"
}
POST msm_test/doc
{
"id": 8,
"fuelType": "petrol",
"gearbox": "manuel",
"seats": 4,
"doors": 5,
"colour": "white",
"make": "Audi",
"model": "A1"
}
POST msm_test/doc
{
"id": 9,
"fuelType": "diesel",
"gearbox": "manuel",
"seats": 4,
"doors": 5,
"colour": "black",
"make": "Audi",
"model": "A1"
}
POST msm_test/doc
{
"id": 10,
"fuelType": "diesel",
"gearbox": "manuel",
"seats": 4,
"doors": 5,
"colour": "red",
"make": "Audi",
"model": "A1"
}