Index Mapping - Sub-field mapped instead of root field

My index mapping specifies

            "subjects": {
                "type": "keyword"
            },

Normally, when I add a document with the subjects field, it works perfectly. However, if I add a document like this. The root-level subjects field is not indexed. Does this sound like intended behaviour or a possible bug?

{
	"subjects": "x"
	"request": {
		"subjects": "y"
	}
}

I am using Elasticsearch 6.2.3. Thanks.

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