Change field type of a non indexed field?


#1

Hello,

ATM in our existing index we have a "Document_FileName" field with following mapping:

"Document_FileName": {
    "type": "string",
    "index": "no",
	"doc_values": false
}

We would like to change its mapping to:

"Document_FileName": {
	"properties": {
		"en": {
			"type": "string",
			"index": "no",
			"doc_values": false
		},
		"fr": {
			"type": "string",
			"index": "no",
			"doc_values": false
		},
		"de": {
			"type": "string",
			"index": "no",
			"doc_values": false
		}
	}
}

From our understanding, when using such mapping, none of the fields are indexed but are only present in the "_source" field (the client code will accommodate the different "structures" of this field in the "_source")

Anyway, we would like to have confirmation that is possible and harmless.

Thanks in advance

Olivier.


(Mark Walkom) #2

Yep.

It's possible, not sure how you would rate what harmless is though.


(system) #3

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