I am using, AWS Elasticsearch service(version 6.3). I am interested in changing mapping while re-indexing data from current_index
to new_index
. I am not trying to upgrade from older Elasticsearch clusters to new one. Both my current_index
and new_index
are on the same Elasticsearch 6.3 cluster.
I am trying to perform Reindex in place operation by following the information from Elastic documentation
My index contains about 250k searchable documents. When I POST _reindex
request using curl,
curl -X POST "aws_elasticsearch_endpoint/_reindex" -H 'Content-Type: application/json' -d'
{
"source": {
"index": "current_index"
},
"dest": {
"index": "new_index"
}
}
'
Elasticsearch starts the reindex process(I verify this by performing GET /_cat/indices?v
), and I end up getting curl: (56) Unexpected EOF
error. The Reindex operation actually works fine. After about 2 hours the doc.count
in new_index
matches that of current_index
and status
turns green
If I POST _reindex
from Java, I get this error:
java.net.SocketException: Unexpected end of file from server
Only when the document size in my index is small(I tried with like 1k searchable documents) is when the Reindex API returns success-fully as specified here