Thanks for the reply.
The mappings are rather larger, however, one example for a changing field is the edition of a given book. In the index "book", generated by an external programme, the corresponding part of the source mapping reads (copied from index management in kibana):
"edition": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
I created a new index "book_v1" to adjust the mapping (planning to delete the old initial index and put some alias "book" up front). I created this index from the dev tools of kibana and confirmed in the index management the appropriate mapping (again copied directly from kibana):
"edition": {
"type": "integer"
},
I then run
POST _reindex
{
"source": {
"index": "book"
},
"dest": {
"index": "book_v1"
}
}
This command runs well and does not produce any errors:
{
"took" : 440,
"timed_out" : false,
"total" : 44,
"updated" : 0,
"created" : 44,
"deleted" : 0,
"batches" : 1,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0,
"failures" : [ ]
}
However, in the mapping of the book_v1 index I have now (copied from kibana)
"edition": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
Similarly, previously defined analyzers for certain fields are not present any more, e.g.:
"doi": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "keyword"
},
becomes
"doi": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
As said above, the complete mapping is rather large and contains nested fields. Can this cause problems?