Hi,
I want to map mappings for documents in index. For that, I have created mappings with properties as of now.
But I also want to get the size of documents, for that, I found out that I need to enable "_size" field as shown here :
https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size-usage.html
My mappings object look like this as of now:
{
"mappings": {
"doc": {
"properties": {
...
}
}
}
}
where should I add "_size" tag?
If I do something like this :-
{
"mappings": {
"doc": {
"properties": {
...
},
"_size": {
"enabled": true
}
}
}
}
I get parsing exception.
If I place it inside properties, I cant get desired results.
Please Help.
Thanks