I currently have two database columns which contain JSON as a
nvarchar(max). I need ElasticSearch to analyze one of them, but ignore
the other one so it will be stored as a string. Is this possible?
I tried the following mapping for the string-json:
"jsontest": {
"type": "object",
"enabled" : false
},
And also:
"jsontest": {
"type": "string",
"index" : "not_analyzed"
},
The first will still give me a JSON tree in elasticsearch. The latter gives a MapperParsingException:failed to parse to string