This piece of code will give you example how to query data from elastic search.
Eventhough ES will be able to receive and process dynamic / not defined scheme but it is considered best practice to have defined map.
{
"mappings" : {
"name" : {
},
"address" : {
}
}
}
- Give more structure
- Http api