What is the field count for the below mapping?

Hi Team,
Greetings...!!!. Hope everyone is safe.
Consider the following mapping for an index and kindly tell me how many fields are there. I have added the keyword mapping for the field "my_string". So my doubt is the field count is 3(my_integer,my_string,my_string.keyword) or 2(my_integer,my_string).

"mappings" : {
"properties" : {
"my_integer" : {
"type" : "long"
"my_string" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
Please bear with me as it is a silly doubt. Thanks in advance

3 fields.

Thanks a lot dadoonet.

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