Have a document like this:
{
"stats": {
"fruits.v:apple": 30,
"fruits.v:orange": 150,
"vegetables.v: broccoli": 40
}
}
- Can I keep the key name as is? What kind of dynamic mapping will help in doing this?
- Is it possible to create dynamically fields like:
{
"stats": {
"fruits": {
"v": "apple",
"count": 30
}
}
}