Hi all,
As we are using ES 1.7.3 with Java 1.8 version. Using bulk API we index some documents to es_item index. It having a document count of nearly 23 millions. I can able to see the a particular document in which shard is been located by using explain API
Below command to view document in which shard,
GET /es_item/_search
{
"explain": true,
"query": {
"match": {
"ITEM_ID": "9180373"
}
}
}
Sample output:-
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 18,
"successful": 18,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_shard": 16,
"_node": "8NXY4FVxRk-JlcmTStqcew",
"_index": "es_item",
"_type": "item",
"_id": "9180373",
"_score": 1,
"_source": {
"ITEM_ID": 9180373,
"ITEM_CODE": "9180373",
"ITEM_DSCR": "UNCODEABLE PRODUCTS",
"ITEM_SPECIFICITY_REF_ID": 188,
"ITEM_TYPE": "UNCODEABLE ITEM",
"IS_SHARED_IND": "Y"}}]}}
My Question is,
1. Is it possible to move a document from one shard to another shard in elasticsearch?
(or)
2. Is there any mechanism to do this?
Please kindly help me in this.
Thanks,
Ganeshbabu R