OpenSearch/docs/reference/mapping/fields/size-field.asciidoc
Clinton Gormley 3465e69e83 [DOCS] Changed all store:yes/no to store:true/false
which is how this setting is stored internally
2013-11-07 16:57:18 +01:00

27 lines
604 B
Plaintext

[[mapping-size-field]]
=== `_size`
The `_size` field allows to automatically index the size of the original
`_source` indexed. By default, it's disabled. In order to enable it, set
the mapping to:
[source,js]
--------------------------------------------------
{
"tweet" : {
"_size" : {"enabled" : true}
}
}
--------------------------------------------------
In order to also store it, use:
[source,js]
--------------------------------------------------
{
"tweet" : {
"_size" : {"enabled" : true, "store" : true }
}
}
--------------------------------------------------