How to migrate not_analyzed ES 1.4.4->7.5.0

I am migrating ES 1.4.4 to ES 7.5.0 and I get the following error in the logs:

In ES 1.4.4 we had several fields of type "index";"not_analyzed" and a few with type "index":"no" and "index":"analyzed".
How to migrate these index options to the new 7.5.0 options which are "idex":"true"/"false"?
Should I migrate like this:
"no" -> "false"
"not_analyzed" -> "true" + "type": "keyword"
"analyzed" -> "true"

?
I have started by migrating everything to "true", yet I get:
"Caused by: java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default.
Set fielddata=true on [type] in order to load fielddata in memory by uninverting the inverted index.
Note that this can however use significant memory. Alternatively use a keyword field instead.",

I am new to ES and would like to ask for some direction.

Thanks

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