Count number of objects nested field

How to count number of objects in a nested filed in elastic search?

Sample mapping :

"keywords": {
"type": "nested",
"properties": {
"base": {
"type": "text"
},
"category": {
"type": "text"
} }
}
I would like to count number of objects in nested filed 'keywords'.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.