Reindex api in ES 5.x version?


(염경훈) #1

Have you used Reindex api in ES 5.x version?
I know that not_analyzed string is a keyword type in ES 5.0.
When re-indexing, all STRING types are replaced by text ...

Do I have to set the mapping before Reindex?

 v.2.3
"hostip" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false },
"logtim" : {
"type" : "date",
"format" : "yyyyMMddHHmmss"}

v.5.1
"hostip" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
} } },
"logtim" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
} } }

(Mark Walkom) #2

Yes you do, otherwise dynamic mapping is used.


(system) #3

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