Hi,
This seems to be a similar case as After reindex, new index has same documents but data size is much less.
I used the Reindex API and my new index is significantly smaller in size. I have a feeling, that it might be because of the mapping and deletion requests.
The source ES index is version 5.6.11. The destination index is 7.11.2
The only changes I have done in the mapping are the following:
- Changed the mapping of one of the fields from
"mapping": {
"analyzer": "autocomplete",
"type": "keyword"
}
to
"mapping": {
"analyzer": "autocomplete",
"type": "text"
}
because the new version would complain about deprecation.
- In the index settings I had
"analyzer": {
"reverse": {
"filter": [
"reverse"
],
"type": "custom",
"tokenizer": "standard"
},
"autocomplete": {
"filter": [
"standard",
"lowercase",
"stop",
"kstem",
"edge_ngram"
],
"type": "custom",
"tokenizer": "standard"
},
I removed the "standard" filter cause the new version does not allow me to create mapping with this one.
My question is can this small change in mapping, can have significant difference in the size of the index despite the same number of documents being indexed?
Thanks!