Hello, everyone.
I'm trying to index an object like this (shown partially):
...
"stats": {
"stats_0": "0",
"stats_0": "0",
...
"stats_99": "99"
}
...
But I'm not being successful: It's indexed as string and I need it to be of numeric type. I think there's two approaches to this problem: 1) provide mappings to those fields or 2) convert those nested fields into long in the pipeline. The problem is I don't know how to do this in a compact way. I don't want to write
...
"stats": {
"properties": {
"stats0": {
"type": "long"
}
"stats1": {
"type": "long"
}
...
"stats99": {
"type": "long"
}
}
}
...
There must be a way to do this for all nested fields at once.
Sorry if it was unclear.
Thank you.